From 1cb7a6bd1ab40188987feeaeefce021d441819e6 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 24 Nov 2014 03:11:16 +0100 Subject: some progress with userspace --- userspace/foolshell.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'userspace/foolshell.c') 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")) { -- cgit v1.2.3