SHELL: .shell script runs from the current dir

git-svn-id: svn://kolibrios.org@2077 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Albom 2011-08-19 11:47:20 +00:00
parent 6c8b52f01e
commit 3f845c4a3b
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -26,7 +26,7 @@ if ( '/' == cmd[0]) //
else
{
strcpy(exec, cur_dir); // ¯à®¢¥à塞 ä ©« ¢ ⥪ã饬 ª â «®£¥
strcat(exec, "/"); // add slash
// strcat(exec, "/"); // add slash
strcat(exec, cmd);
if ( !file_check(exec) ) // ¯à®¢¥à塞 áãé¥á⢮¢ ­¨¥ ä ©« 
@ -43,9 +43,7 @@ else
if ( script_check(exec) )
{
return script_run(exec, args);
}
/* § ¯ã᪠¯à®£à ¬¬ë */
result = program_run(exec, args);