From cb385f96ef7caa1ae9652c498ae8458c30b3cf32 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Fri, 15 May 2026 07:48:39 +0200 Subject: start porting command execution --- exec.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'exec.c') diff --git a/exec.c b/exec.c index aefe7e2..9d791fb 100644 --- a/exec.c +++ b/exec.c @@ -1,11 +1,14 @@ #include "lex.h" #include "parse.h" #include "exec.h" +#include "typeutils.h" #include #include #include + + void set_map_pair(KeyValMap* map, char* key, char* val) { for (int i = 0; i < map->count; i++) { char* key_i = get_from_KeyValMap(map, i)->key; @@ -155,6 +158,18 @@ void command_thing(Command command, ShellState* shstate) { } } + +DECLARE_VEC(int, IntVec) + + +typedef struct { + int stdin_fd; + int stdout_fd; +} CommandProcessInfo; + + + + void run_pipeline(Pipeline pl, ShellState* shstate) { for (int i = 0; i < pl.count; i++) { printf("\tCommand %d:\n", i); -- cgit v1.2.3