diff --git a/programs/system/shell/globals.h b/programs/system/shell/globals.h index 426d6bc4a5..720102957f 100644 --- a/programs/system/shell/globals.h +++ b/programs/system/shell/globals.h @@ -1,5 +1,5 @@ -#define SHELL_VERSION "0.4.6" +#define SHELL_VERSION "0.4.7" extern char PATH[256]; extern char PARAM[256]; diff --git a/programs/system/shell/modules/module_executable.c b/programs/system/shell/modules/module_executable.c index c805080c61..de0e8a5962 100644 --- a/programs/system/shell/modules/module_executable.c +++ b/programs/system/shell/modules/module_executable.c @@ -26,6 +26,7 @@ if ( '/' == cmd[0]) // else { strcpy(exec, cur_dir); // проверяем файл в текущем каталоге + strcat(exec, "/"); // add slash strcat(exec, cmd); if ( !file_check(exec) ) // проверяем существование файла