Commit 25fcad37 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd: Partial fix for echo's special ':' handling.

parent dcd544f7
......@@ -861,10 +861,10 @@ void WCMD_echo (const WCHAR *command) {
int count;
const WCHAR *origcommand = command;
if (command[0]==' ' || command[0]=='.')
if (command[0]==' ' || command[0]=='.' || command[0]==':')
command++;
count = strlenW(command);
if (count == 0 && origcommand[0]!='.') {
if (count == 0 && origcommand[0]!='.' && origcommand[0]!=':') {
if (echo_mode) WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), onW);
else WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), offW);
return;
......
......@@ -31,13 +31,13 @@ word
.word
@todo_wine@@pwd@>echo:
@todo_wine@
@pwd@>echo :@space@
:
@todo_wine@@pwd@>echo:word
@todo_wine@word
word
@pwd@>echo :word@space@
:word
......@@ -57,9 +57,9 @@ at-echoed-word
.
word
.word
@todo_wine@
:
@todo_wine@word
word
:word
word@space@
word@space@@space@
......
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