From 642b5fb0007b64c77d186fcb018d571152ee1d47 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 14 Aug 2023 18:51:07 +0200 Subject: reorganization: first steps --- src/cmd/shell/shell.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/cmd/shell/shell.h (limited to 'src/cmd/shell/shell.h') diff --git a/src/cmd/shell/shell.h b/src/cmd/shell/shell.h new file mode 100644 index 0000000..050e704 --- /dev/null +++ b/src/cmd/shell/shell.h @@ -0,0 +1,11 @@ +#pragma once +#include +#include + +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); -- cgit v1.2.3