Allow command lines with pipes to be processed by wcmd.
This commit is contained in:
parent
f872d9a30d
commit
41226dba28
|
@ -193,7 +193,10 @@ int main (int argc, char *argv[])
|
||||||
* the currently allocated input and output handles. This allows
|
* the currently allocated input and output handles. This allows
|
||||||
* us to pipe to and read from the command interpreter.
|
* 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);
|
HeapFree(GetProcessHeap(), 0, cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue