mirror of
https://github.com/reactos/reactos.git
synced 2024-09-18 00:33:04 +00:00
Implement same behavor for cd * as ms cmd cd *
Left to implement is /D options for cd then it is same level as ms win2k cmd cd En.rc Fix a options error for cd it did say cd -, but it it is cd . svn path=/trunk/; revision=15438
This commit is contained in:
parent
750d4fd13f
commit
b8171c1fd9
|
@ -42,11 +42,11 @@ CALL [drive:][path]filename [batch-parameter]\n\n\
|
|||
|
||||
STRING_CD_HELP, "Changes the current directory or displays it's name\n\n\
|
||||
CHDIR [drive:][path]\n\
|
||||
CHDIR[..|-]\n\
|
||||
CHDIR[..|.]\n\
|
||||
CD [drive:][path]\n\
|
||||
CD[..|-]\n\n\
|
||||
CD[..|.]\n\n\
|
||||
.. parent directory\n\
|
||||
- previous directory\n\n\
|
||||
. previous directory\n\n\
|
||||
Type CD drive: to display the current directory on the specified drive.\n\
|
||||
Type CD without a parameter to display the current drive and directory."
|
||||
|
||||
|
|
|
@ -195,6 +195,15 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
str_len = _tcslen(param);
|
||||
if (str_len==1)
|
||||
{
|
||||
if (param[0] == _T('*'))
|
||||
{
|
||||
param[0] = _T('.');
|
||||
}
|
||||
}
|
||||
|
||||
dir=param;
|
||||
|
||||
|
|
Loading…
Reference in a new issue