Allow command lines with pipes to be processed by wcmd.

This commit is contained in:
Greg Marsden 2003-07-09 21:58:26 +00:00 committed by Alexandre Julliard
parent f872d9a30d
commit 41226dba28
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ int main (int argc, char *argv[])
* the currently allocated input and output handles. This allows
* us to pipe to and read from the command interpreter.
*/
WCMD_process_command(cmd);
if (strchr(cmd,'|') != NULL)
WCMD_pipe(cmd);
else
WCMD_process_command(cmd);
HeapFree(GetProcessHeap(), 0, cmd);
return 0;
}