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:
Albom 2011-02-10 17:53:48 +00:00
parent e8b7507165
commit b63ebe25ee
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#define SHELL_VERSION "0.4.6"
#define SHELL_VERSION "0.4.7"
extern char PATH[256];
extern char PARAM[256];

View File

@ -26,6 +26,7 @@ if ( '/' == cmd[0]) //
else
{
strcpy(exec, cur_dir); // ¯à®¢¥à塞 ä ©« ¢ ⥪ã饬 ª â «®£¥
strcat(exec, "/"); // add slash
strcat(exec, cmd);
if ( !file_check(exec) ) // ¯à®¢¥à塞 áãé¥á⢮¢ ­¨¥ ä ©«