diff options
Diffstat (limited to 'userspace/foolshell.c')
| -rw-r--r-- | userspace/foolshell.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/userspace/foolshell.c b/userspace/foolshell.c index 2a70940..29e8438 100644 --- a/userspace/foolshell.c +++ b/userspace/foolshell.c @@ -25,7 +25,7 @@ void hello() void prompt() { - printf("%s",getenv("PS1")); + printf("%s%s",getenv("PWD"),getenv("PS1")); } int main(int argc, char **argv) @@ -105,7 +105,11 @@ int process(char *buf) if(!strcmp(command,"help")) { - puts("foolshell: supported built-in commands: 'help', 'echo [string]', 'malloc [bytes]', 'free [address]', 'getenv [var]', 'putenv [var] [val]', 'env'"); + puts("foolshell: supported built-in commands: 'help', 'echo [string]', 'malloc [bytes]', 'free [address]', 'getenv [var]', 'putenv [var] [val]', 'env' 'cd [dir]'"); + } + else if(!strcmp(command,"cd")) + { + } else if(!strcmp(command,"echo")) { |
