cmd: echo.word should echo back the word without the .
This commit is contained in:
parent
4f210e21a5
commit
32c8b46633
|
@ -668,15 +668,12 @@ BOOL WCMD_delete (WCHAR *command, BOOL expectDir) {
|
|||
void WCMD_echo (const WCHAR *command) {
|
||||
|
||||
int count;
|
||||
const WCHAR *origcommand = command;
|
||||
|
||||
if ((command[0] == '.') && (command[1] == 0)) {
|
||||
WCMD_output (newline);
|
||||
return;
|
||||
}
|
||||
if (command[0]==' ')
|
||||
if (command[0]==' ' || command[0]=='.')
|
||||
command++;
|
||||
count = strlenW(command);
|
||||
if (count == 0) {
|
||||
if (count == 0 && origcommand[0]!='.') {
|
||||
if (echo_mode) WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), onW);
|
||||
else WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), offW);
|
||||
return;
|
||||
|
|
|
@ -9,6 +9,8 @@ echo "doublequotedword"
|
|||
echo "/?"
|
||||
echo.
|
||||
echo .
|
||||
echo.word
|
||||
echo .word
|
||||
|
||||
echo ------------ Testing 'set' --------------
|
||||
echo set "FOO=bar" should not include the quotes in the variable value
|
||||
|
|
|
@ -9,6 +9,8 @@ at-echoed-word
|
|||
"/?"
|
||||
|
||||
.
|
||||
word
|
||||
.word
|
||||
------------ Testing 'set' --------------
|
||||
set "FOO=bar" should not include the quotes in the variable value
|
||||
bar
|
||||
|
|
Loading…
Reference in New Issue