From aeefdb37d1fc1c0eb7953b9c196cab09460bc167 Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 20 Sep 2018 20:51:57 +0200 Subject: we are now prepared for piping with _pipe and _dup2 --- userspace/cat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'userspace/cat.c') diff --git a/userspace/cat.c b/userspace/cat.c index d0b018b..94cbdaa 100644 --- a/userspace/cat.c +++ b/userspace/cat.c @@ -1,7 +1,10 @@ #include +#include int main(int argc, char **argv) { + printf("hmm\n"); + printf("pwd=%s\n",getenv("PWD")); FILE *f; if(argc>1){ char buf[256]; -- cgit v1.2.3