From 515c60105dbc8a74ed20d3246e7060cdff4e0f5d Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Mon, 13 Apr 2009 19:10:56 +0000 Subject: [PATCH] Parse 'cmd1 && ! cmd2 | cmd3' correctly, the bang should apply to the entire pipeline cmd2 | cmd3 and not just cmd2. PR: 130298 Submitted by: Jilles Tjoelker --- bin/sh/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 86f50fc7b84..eb7501e04ef 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -250,6 +250,7 @@ pipeline(void) int negate; negate = 0; + checkkwd = 2; TRACE(("pipeline: entered\n")); while (readtoken() == TNOT) negate = !negate;