mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user