DragonFly commits List (threaded) for 2011-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: sh: Detect an error for ${#var<GARBAGE>}.
commit f41d807a0c7c535d8f66f0593fb6e95fa20f82d4
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date: Sat Jul 2 14:03:42 2011 -1000
sh: Detect an error for ${#var<GARBAGE>}.
In particular, this makes things like ${#foo[0]} and ${#foo[@]} errors
rather than silent equivalents of ${#foo}.
Obtained-from: FreeBSD SVN rev 221461
Summary of changes:
bin/sh/parser.c | 4 +++-
tools/regression/bin/sh/errors/bad-parm-exp6.2 | 2 ++
.../bin/sh/errors/bad-parm-exp6.2.stderr | 1 +
3 files changed, 6 insertions(+), 1 deletions(-)
create mode 100644 tools/regression/bin/sh/errors/bad-parm-exp6.2
create mode 100644 tools/regression/bin/sh/errors/bad-parm-exp6.2.stderr
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f41d807a0c7c535d8f66f0593fb6e95fa20f82d4
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]