diff options
Diffstat (limited to 'cmd.h')
-rw-r--r-- | cmd.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -16,15 +16,11 @@ typedef enum { | |||
16 | typedef struct Command { | 16 | typedef struct Command { |
17 | CommandType type; // the type of the command | 17 | CommandType type; // the type of the command |
18 | char **args; // an array of strings for the arguments of the command | 18 | char **args; // an array of strings for the arguments of the command |
19 | int argc; | ||
19 | struct Command *left; // a pointer to the left sub-command | 20 | struct Command *left; // a pointer to the left sub-command |
20 | struct Command *right; // a pointer to the right sub-command | 21 | struct Command *right; // a pointer to the right sub-command |
21 | char *redirect_in; // the file name for input redirection, or NULL if there | ||
22 | // is no input redirection | ||
23 | char *redirect_out; // the file name for output redirection, or NULL if | ||
24 | // there is no output redirection | ||
25 | char *append_out; // the file name for output appending, or NULL if there is | ||
26 | // no output appending | ||
27 | // add more fields as needed | ||
28 | } Command; | 22 | } Command; |
29 | 23 | ||
24 | int runcmd(Command *cmd); | ||
25 | |||
30 | #endif \ No newline at end of file | 26 | #endif \ No newline at end of file |