mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 15:14:29 +00:00
cmd: Partial fix for echo's special ':' handling.
This commit is contained in:
parent
dcd544f744
commit
25fcad3768
|
@ -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@
|
||||
|
|
Loading…
Reference in a new issue