Mark 4c2741e015 Rewrite sh for PoC pipe support, add simple grep
"PoC" is rather for "Piece of Crap" here
2020-07-02 12:49:04 +03:00

16 lines
239 B
C

#pragma once
struct cmd_unit {
int fds[3];
int pid, res;
int argc;
char *args[64];
struct cmd_unit *prev, *next;
};
struct cmd {
struct cmd_unit *first, *last;
};
int cmd_parse(const char *str, struct cmd *cmd);