cmd: Fix echo's special ';' handling.

This commit is contained in:
Frédéric Delanoy 2011-08-31 22:10:57 +02:00 committed by Alexandre Julliard
parent 23e1777054
commit 02ef576739
1 changed files with 5 additions and 2 deletions

View File

@ -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;