cmd: Fix echo's special ';' handling.
This commit is contained in:
parent
23e1777054
commit
02ef576739
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue