mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-28 03:39:35 +03:00
fixed bug with cd ../
fixed cd . and cd ./ behavior git-svn-id: svn://kolibrios.org@7805 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
667c49c5af
commit
610a0f5c6e
@ -16,10 +16,10 @@ if (NULL == dir)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ( 0 == strcmp(dir, ".") )
|
||||
return FALSE;
|
||||
if ( 0 == strcmp(dir, ".") || 0 == strcmp(dir, "./") )
|
||||
return TRUE;
|
||||
|
||||
if ( ( 0 == strcmp(dir, "..") ) && ( 0 != strcmp(cur_dir, "/")) )
|
||||
if ( ( 0 == strcmp(dir, "..") || 0 == strcmp(dir, "../") ) && ( 0 != strcmp(cur_dir, "/")) )
|
||||
{
|
||||
cur_dir[strlen(cur_dir)-1]='\0';
|
||||
dir_truncate(cur_dir);
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#define SHELL_VERSION "0.8"
|
||||
#define SHELL_VERSION "0.8a"
|
||||
|
||||
extern char PATH[256];
|
||||
extern char PARAM[256];
|
||||
|
Loading…
Reference in New Issue
Block a user