Fix expanding of quoted positional parameters in case patterns.
commitac8e3a241fbe6eb508d89612978023e67ac57313
authorpavalos <pavalos>
Sun, 7 Jan 2007 16:58:30 +0000 (7 16:58 +0000)
committerpavalos <pavalos>
Sun, 7 Jan 2007 16:58:30 +0000 (7 16:58 +0000)
tree2dfacee6b01d90268577c4b1d69f996b075f5497
parent6ba98fb1662ed23c25e94b84c614f8a2c62d80f1
Fix expanding of quoted positional parameters in case patterns.

When parsing an invalid parameter expansion (eg. ${} or ${foo@bar}) do not
issue a syntax error immediately but save the information that it is erroneous
for later when the parameter expansion is actually done.  This means eg. "false
&& ${}" will not generate an error which seems to be required by POSIX.

Remove some white space at EOL.

The sub-expression "(nulonly || 1)" always evaluates to true and
according to CVS logs seems to be just a left-over from some
debugging and introduced by accident.

Remove collate_range_cmp() stabilization, it conflicts with ranges

Replace various spellings with FALLTHROUGH which is lint()able

Obtained-from:  FreeBSD
bin/sh/expand.c
bin/sh/parser.c
bin/sh/parser.h