forked from KolibriOS/kolibrios
Running programs in the current directory with Shell is fixed.
git-svn-id: svn://kolibrios.org@1862 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e8b7507165
commit
b63ebe25ee
@ -1,5 +1,5 @@
|
||||
|
||||
#define SHELL_VERSION "0.4.6"
|
||||
#define SHELL_VERSION "0.4.7"
|
||||
|
||||
extern char PATH[256];
|
||||
extern char PARAM[256];
|
||||
|
@ -26,6 +26,7 @@ if ( '/' == cmd[0]) //
|
||||
else
|
||||
{
|
||||
strcpy(exec, cur_dir); // ¯à®¢¥à塞 ä ©« ¢ ⥪ã饬 ª â «®£¥
|
||||
strcat(exec, "/"); // add slash
|
||||
strcat(exec, cmd);
|
||||
|
||||
if ( !file_check(exec) ) // ¯à®¢¥à塞 áãé¥á⢮¢ ¨¥ ä ©«
|
||||
|
Loading…
Reference in New Issue
Block a user