diff options
author | dzwdz | 2022-07-28 18:06:23 +0200 |
---|---|---|
committer | dzwdz | 2022-07-28 18:06:23 +0200 |
commit | a0b16620e1699504e8d21a481e019dec40d7ee1b (patch) | |
tree | 657835c863dc5cf88d003af29fa9b7836f728cd6 /src/user/app/shell/shell.h | |
parent | 473cc957826064840bce7a5c5ff97614e0c6cb9e (diff) |
user/shell: redirections
Diffstat (limited to 'src/user/app/shell/shell.h')
-rw-r--r-- | src/user/app/shell/shell.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/user/app/shell/shell.h b/src/user/app/shell/shell.h index 986ce22..4c7eeb3 100644 --- a/src/user/app/shell/shell.h +++ b/src/user/app/shell/shell.h @@ -1,4 +1,10 @@ #pragma once +#include <stdbool.h> #include <stddef.h> -int parse(char *str, char **argv, size_t argvlen, char **redir); +struct redir { + const char *stdout; + bool append; +}; + +int parse(char *s, char **argv, size_t argvlen, struct redir *redir); |