summaryrefslogtreecommitdiff
path: root/src/user/app/shell/shell.h
diff options
context:
space:
mode:
authordzwdz2022-07-30 14:52:22 +0200
committerdzwdz2022-07-30 14:52:22 +0200
commitb26399ad055aae9ef4b01694967515235568cd85 (patch)
treef8eec54655b5461e00596d7aa1f2a27aa5fede25 /src/user/app/shell/shell.h
parent9efd7f96b028a69b1da0cf53f6d7be71048c73d7 (diff)
user: stderr
Diffstat (limited to 'src/user/app/shell/shell.h')
-rw-r--r--src/user/app/shell/shell.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user/app/shell/shell.h b/src/user/app/shell/shell.h
index 4c7eeb3..5097e00 100644
--- a/src/user/app/shell/shell.h
+++ b/src/user/app/shell/shell.h
@@ -2,6 +2,8 @@
#include <stdbool.h>
#include <stddef.h>
+#define eprintf(fmt, ...) fprintf(stderr, "sh: "fmt"\n" __VA_OPT__(,) __VA_ARGS__)
+
struct redir {
const char *stdout;
bool append;