Commit 41226dba authored by Greg Marsden's avatar Greg Marsden Committed by Alexandre Julliard

Allow command lines with pipes to be processed by wcmd.

parent f872d9a3
......@@ -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;
}
......
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