diff options
| author | Miguel <m.i@gmx.at> | 2018-09-20 20:51:57 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-20 20:51:57 +0200 |
| commit | aeefdb37d1fc1c0eb7953b9c196cab09460bc167 (patch) | |
| tree | 513789d7fd28b65afb594e9605975bd10ea06f74 /userspace/cat.c | |
| parent | 763f85c55fdb5a2c4f5bf98e4989a69d27da6e4f (diff) | |
we are now prepared for piping with _pipe and _dup2
Diffstat (limited to 'userspace/cat.c')
| -rw-r--r-- | userspace/cat.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> int main(int argc, char **argv) { + printf("hmm\n"); + printf("pwd=%s\n",getenv("PWD")); FILE *f; if(argc>1){ char buf[256]; |
