Module: wine Branch: master Commit: 02ef576739082235f6bbc4d07c5063339deb81ec URL: http://source.winehq.org/git/wine.git/?a=commit;h=02ef576739082235f6bbc4d07c...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Wed Aug 31 22:10:57 2011 +0200
cmd: Fix echo's special ';' handling.
---
programs/cmd/builtins.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 7f003ed..bbf2920 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -864,10 +864,13 @@ void WCMD_echo (const WCHAR *command) { int count; const WCHAR *origcommand = command;
- if (command[0]==' ' || command[0]=='\t' || command[0]=='.' || command[0]==':') + if ( command[0]==' ' || command[0]=='\t' || command[0]=='.' + || command[0]==':' || command[0]==';') command++; + count = strlenW(command); - if (count == 0 && origcommand[0]!='.' && origcommand[0]!=':') { + if (count == 0 && origcommand[0]!='.' && origcommand[0]!=':' + && origcommand[0]!=';') { if (echo_mode) WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), onW); else WCMD_output (WCMD_LoadMessage(WCMD_ECHOPROMPT), offW); return;