Fix expanding of quoted positional parameters in case patterns.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 7 Jan 2007 16:58:30 +0000 (16:58 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 7 Jan 2007 16:58:30 +0000 (16:58 +0000)
commitaf260b21ae04ae25800cb5d92cc02f2298706851
tree11e4e8e3a504b912c2b9186adb913d8c019b163a
parentb6eed06359427be5115a36a4c65605cb10dad562
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