diff options
author | tjr <tjr@FreeBSD.org> | 2002-07-22 05:50:12 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-07-22 05:50:12 +0000 |
commit | e73489bbe4deeedc62a5f34ecf84e42439a6dd86 (patch) | |
tree | 28321013ea7e31dcc709cfe7ae0d97b467020716 /bin/sh | |
parent | b8007ee7a0c2979b4081be1289dfbcc81743446a (diff) | |
download | FreeBSD-src-e73489bbe4deeedc62a5f34ecf84e42439a6dd86.zip FreeBSD-src-e73489bbe4deeedc62a5f34ecf84e42439a6dd86.tar.gz |
Don't allow "||" or "&&" to be the first tokens of a command.
PR: 40386
MFC after: 2 weeks
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index ac6b288..84288b8 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -486,6 +486,7 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : "")); synexpect(-1); case TAND: case TOR: + synexpect(-1); case TNL: case TEOF: case TWORD: |