]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r198454: sh: Exempt $@ and $* from set -u
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 9 Nov 2010 22:32:11 +0000 (22:32 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 9 Nov 2010 22:32:11 +0000 (22:32 +0000)
commite73331ea4d0c16815b9230b279e2a98c66200c82
tree8a8d1e7cafd002e9eddf73385c76b9a29aed7faa
parent5566756c0db45a5be0598abf9fb5d8141e69d67f
MFC r198454: sh: Exempt $@ and $* from set -u

This seems more useful and will likely be in the next POSIX standard.

Also document more precisely in the man page what set -u does (note that
$@, $* and $! are the only special parameters that can ever be unset, all
the others are always set, although they may be empty).

git-svn-id: svn://svn.freebsd.org/base/stable/8@215066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/expand.c
bin/sh/sh.1
tools/regression/bin/sh/expansion/set-u2.0 [new file with mode: 0644]