diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 08d25696ffc2..9164b6031ae0 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -256,13 +256,16 @@ pipeline() { union node *n1, *pipenode, *notnode; struct nodelist *lp, *prev; int negate = 0; + int savecheckkwd = checkkwd; TRACE(("pipeline: entered\n")); + checkkwd = 2; while (readtoken() == TNOT) { TRACE(("pipeline: TNOT recognized\n")); negate = !negate; } tokpushback++; + checkkwd = savecheckkwd; n1 = command(); if (readtoken() == TPIPE) { pipenode = (union node *)stalloc(sizeof (struct npipe));