diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-15 07:48:39 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-15 07:48:39 +0200 |
| commit | cb385f96ef7caa1ae9652c498ae8458c30b3cf32 (patch) | |
| tree | 3c87baa9444d419d7799309bec49e213b7683698 /exec.c | |
| parent | 90ca28560a641e2e0b44213dc98c09a2ec3bee6f (diff) | |
start porting command execution
Diffstat (limited to 'exec.c')
| -rw-r--r-- | exec.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,11 +1,14 @@ #include "lex.h" #include "parse.h" #include "exec.h" +#include "typeutils.h" #include <stdio.h> #include <stdlib.h> #include <string.h> + + 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); |
