From a0b16620e1699504e8d21a481e019dec40d7ee1b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 28 Jul 2022 18:06:23 +0200 Subject: user/shell: redirections --- src/user/app/shell/shell.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/user/app/shell/shell.h') 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 #include -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); -- cgit v1.2.3