#pragma once #include "utils.h" #include "preproc.h" typedef struct { int old_fd; int new_fd; } FdRedirect; DECLARE_VEC(FdRedirect, FdRedirectVec) typedef struct { char** args; FdRedirectVec redirs; int stdin_fd; int stdout_fd; IntVec child_close_fds; IntVec parent_close_fds; Connector term; } Command; DECLARE_VEC(Command, CommandVec) void process_input_line(char* line, ShellState* shstate);