diff --git a/programs/system/shell/cmd/cmd_cd.c b/programs/system/shell/cmd/cmd_cd.c index ff9b2bd75a..4eae740746 100644 --- a/programs/system/shell/cmd/cmd_cd.c +++ b/programs/system/shell/cmd/cmd_cd.c @@ -37,10 +37,13 @@ if ( '/' == dir[0]) else { strcpy(temp, cur_dir); + if (cur_dir[strlen(cur_dir)-1] != '/') + strcat(temp, "/"); strcat(temp, dir); if ( dir_check(temp) ) { + strcpy(cur_dir, temp); return TRUE; } diff --git a/programs/system/shell/compile_eng.bat b/programs/system/shell/compile_eng.bat index 1ef184b56e..03f858424a 100644 --- a/programs/system/shell/compile_eng.bat +++ b/programs/system/shell/compile_eng.bat @@ -1,5 +1,5 @@ @echo off -erase shell.kex lang.h +erase lang.h echo #define LANG_ENG 1 > lang.h fasm start.asm start.o gcc -c shell.c diff --git a/programs/system/shell/compile_rus.bat b/programs/system/shell/compile_rus.bat index f1b18b94c1..cf5caa6cbe 100644 --- a/programs/system/shell/compile_rus.bat +++ b/programs/system/shell/compile_rus.bat @@ -1,5 +1,5 @@ @echo off -erase shell.kex lang.h +erase lang.h echo #define LANG_RUS 1 > lang.h fasm start.asm start.o gcc -c shell.c diff --git a/programs/system/shell/globals.h b/programs/system/shell/globals.h index a5ce183703..23160f3d59 100644 --- a/programs/system/shell/globals.h +++ b/programs/system/shell/globals.h @@ -1,5 +1,5 @@ -#define SHELL_VERSION "0.4.9" +#define SHELL_VERSION "0.4.91" extern char PATH[256]; extern char PARAM[256];