aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-08-11 03:04:23 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-08-11 03:04:23 +0000
commitd8d737d7510671162898e146e9f33e32e5a3c2fd (patch)
tree1bbe9702315bdb4ac436d696e7d00a1f959c31e2 /bin
parent24befda40b40b9a9c5a0e5b69203f909ab65300c (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 84288b860d52..e87047f54f9e 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -478,15 +478,14 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : ""));
break;
/* Handle an empty command like other simple commands. */
case TSEMI:
+ case TAND:
+ case TOR:
/*
* An empty command before a ; doesn't make much sense, and
* should certainly be disallowed in the case of `if ;'.
*/
if (!redir)
synexpect(-1);
- case TAND:
- case TOR:
- synexpect(-1);
case TNL:
case TEOF:
case TWORD: