sh: Apply set -u to variables in arithmetic.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 3 Jul 2011 00:07:08 +0000 (14:07 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 19:10:25 +0000 (12:10 -0700)
commit024481c1f7126a45bec71491e1287c2fff512050
tree63e92288c23e33a4637d0c04e0daa6012ee2fdeb
parentf41d807a0c7c535d8f66f0593fb6e95fa20f82d4
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
bin/sh/arith_yacc.c
tools/regression/bin/sh/expansion/set-u3.0 [new file with mode: 0644]