#pragma once #include #include #define eprintf(fmt, ...) fprintf(stderr, "sh: "fmt"\n" __VA_OPT__(,) __VA_ARGS__) struct redir { const char *stdout; bool append; }; int parse(char *s, char **argv, size_t argvlen, struct redir *redir); void run_args(int argc, char **argv, struct redir *redir);