Commit 02ef5767 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

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

parent 23e17770
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment