DragonFly commits List (threaded) for 2007-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/bin/sh expand.c parser.c parser.h
pavalos 2007/01/07 08:58:30 PST
DragonFly src repository
Modified files:
bin/sh expand.c parser.c parser.h
Log:
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
Revision Changes Path
1.9 +28 -30 src/bin/sh/expand.c
1.9 +19 -9 src/bin/sh/parser.c
1.4 +2 -1 src/bin/sh/parser.h
http://www.dragonflybsd.org/cvsweb/src/bin/sh/expand.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/sh/parser.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/sh/parser.h.diff?r1=1.3&r2=1.4&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]