git: sh: Apply set -u to variables in arithmetic.
Peter Avalos
pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:02 PDT 2011
commit 024481c1f7126a45bec71491e1287c2fff512050
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date: Sat Jul 2 14:07:08 2011 -1000
sh: Apply set -u to variables in arithmetic.
Note that this only applies to variables that are actually used.
Things like (0 && unsetvar) do not cause an error.
Obtained-from: FreeBSD SVN rev 221463
Summary of changes:
bin/sh/arith_yacc.c | 4 +++-
tools/regression/bin/sh/expansion/set-u3.0 | 6 ++++++
2 files changed, 9 insertions(+), 1 deletions(-)
create mode 100644 tools/regression/bin/sh/expansion/set-u3.0
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/024481c1f7126a45bec71491e1287c2fff512050
--
DragonFly BSD source repository
More information about the Commits
mailing list