From efbefc84b9ef3458ae9f456abc82aa4f2ac24ec4 Mon Sep 17 00:00:00 2001 From: Albom Date: Thu, 19 Apr 2012 03:20:58 +0000 Subject: [PATCH] Shell: pwd cmd fix git-svn-id: svn://kolibrios.org@2631 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/shell/cmd/cmd_pwd.c | 2 +- programs/system/shell/globals.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/system/shell/cmd/cmd_pwd.c b/programs/system/shell/cmd/cmd_pwd.c index 9b1baaca0a..8b21fd3119 100644 --- a/programs/system/shell/cmd/cmd_pwd.c +++ b/programs/system/shell/cmd/cmd_pwd.c @@ -1,6 +1,6 @@ int cmd_pwd(char param[]) { -printf (" %s/\n\r", cur_dir); +printf (" %s%c\n\r", cur_dir, cur_dir[strlen(cur_dir)-1]=='/'?' ':'/' ); return TRUE; } diff --git a/programs/system/shell/globals.h b/programs/system/shell/globals.h index 29c205ec51..c5521970c3 100644 --- a/programs/system/shell/globals.h +++ b/programs/system/shell/globals.h @@ -1,5 +1,5 @@ -#define SHELL_VERSION "0.5.2" +#define SHELL_VERSION "0.5.3" extern char PATH[256]; extern char PARAM[256];