Subversion Repositories Kolibri OS

Compare Revisions

Ignore whitespace Rev 4107 → Rev 4109

/programs/system/shell/shell.c
129,18 → 129,18
ALIASES = malloc(128*1024);
 
if (PARAM[0] == 0)
{
{
strcpy(CMD, cur_dir);
strcat(CMD, ".shell");
if ( !file_check(CMD) )
strcpy(CMD, "/sys/settings/.shell");
}
}
else
{
if (PARAM[0] == '/')
{
strcpy(cur_dir, PARAM);
*strrchr(cur_dir, '/')=0;
*(strrchr(cur_dir, '/')+1)=0;
}
strcpy(CMD, PARAM);
}