DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 16:31:59 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]