mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 11:22:34 +03:00
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:
parent
6c8b52f01e
commit
3f845c4a3b
@ -1,5 +1,5 @@
|
||||
|
||||
#define SHELL_VERSION "0.4.7"
|
||||
#define SHELL_VERSION "0.4.8"
|
||||
|
||||
extern char PATH[256];
|
||||
extern char PARAM[256];
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user