summaryrefslogtreecommitdiff
path: root/userspace/cat.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-20 20:51:57 +0200
committerMiguel <m.i@gmx.at>2018-09-20 20:51:57 +0200
commitaeefdb37d1fc1c0eb7953b9c196cab09460bc167 (patch)
tree513789d7fd28b65afb594e9605975bd10ea06f74 /userspace/cat.c
parent763f85c55fdb5a2c4f5bf98e4989a69d27da6e4f (diff)
we are now prepared for piping with _pipe and _dup2
Diffstat (limited to 'userspace/cat.c')
-rw-r--r--userspace/cat.c3
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];