mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
Allow a left parenthesis before patterns in case blocks. POSIX requires
us to accept this, but I've never seen a script that uses it.
This commit is contained in:
1 parent
a5573db3bf
commit
f7a9b7fe3a
1 file changed
+2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104207
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user