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 . Modified: trunk/reactos/subsys/system/cmd/En.rc Modified: trunk/reactos/subsys/system/cmd/internal.c _____
Modified: trunk/reactos/subsys/system/cmd/En.rc --- trunk/reactos/subsys/system/cmd/En.rc 2005-05-20 19:07:23 UTC (rev 15437) +++ trunk/reactos/subsys/system/cmd/En.rc 2005-05-20 21:33:49 UTC (rev 15438) @@ -42,11 +42,11 @@
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."
_____
Modified: trunk/reactos/subsys/system/cmd/internal.c --- trunk/reactos/subsys/system/cmd/internal.c 2005-05-20 19:07:23 UTC (rev 15437) +++ trunk/reactos/subsys/system/cmd/internal.c 2005-05-20 21:33:49 UTC (rev 15438) @@ -195,6 +195,15 @@
}
} + + str_len = _tcslen(param); + if (str_len==1) + { + if (param[0] == _T('*')) + { + param[0] = _T('.'); + } + } dir=param;