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:
Magnus Olsen 2005-05-20 21:33:49 +00:00
parent 750d4fd13f
commit b8171c1fd9
2 changed files with 12 additions and 3 deletions

View file

@ -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."

View file

@ -196,6 +196,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;
/* if doing a CD and no parameters given, print out current directory */