From 41226dba28e97aaf9e8de9bdd9c69f15414bd98b Mon Sep 17 00:00:00 2001 From: Greg Marsden Date: Wed, 9 Jul 2003 21:58:26 +0000 Subject: [PATCH] Allow command lines with pipes to be processed by wcmd. --- programs/wcmd/wcmdmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/programs/wcmd/wcmdmain.c b/programs/wcmd/wcmdmain.c index 8306eef4803..2fd096187c1 100644 --- a/programs/wcmd/wcmdmain.c +++ b/programs/wcmd/wcmdmain.c @@ -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; }