git: sh: Apply set -u to variables in arithmetic.

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 024481c1f7126a45bec71491e1287c2fff512050 Author: Peter Avalos <pavalos@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
文章代碼(AID): #1EKPn6OE (DFBSD_commit)