Commit 32c8b466 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd: echo.word should echo back the word without the .

parent 4f210e21
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment