=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd: Fix echo's special '; ' handling.

Alexandre Julliard julliard at winehq.org
Thu Sep 1 11:56:00 CDT 2011


Module: wine
Branch: master
Commit: 02ef576739082235f6bbc4d07c5063339deb81ec
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=02ef576739082235f6bbc4d07c5063339deb81ec

Author: Frédéric Delanoy <frederic.delanoy at 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;




More information about the wine-cvs mailing list