diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-09-30 13:25:00 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-09-30 13:25:00 +0000 |
| commit | f7a9b7fe3a8d9fa124d5d279db4d2a2ffb3686b3 (patch) | |
| tree | c5a8d36832ddcaef9d468c7b866a98b72b960a9e /bin | |
| parent | a5573db3bf694bcb9306a29762d8e66e707c9583 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/sh/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 8a2e988c85e3..69d64055b37f 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -433,6 +433,8 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : "")); *cpp = cp = (union node *)stalloc(sizeof (struct nclist)); cp->type = NCLIST; app = &cp->nclist.pattern; + if (lasttoken == TLP) + readtoken(); for (;;) { *app = ap = (union node *)stalloc(sizeof (struct narg)); ap->type = NARG; |
