]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Exempt $@ and $* from set -u
authorjilles <jilles@FreeBSD.org>
Sat, 24 Oct 2009 21:20:04 +0000 (21:20 +0000)
committerjilles <jilles@FreeBSD.org>
Sat, 24 Oct 2009 21:20:04 +0000 (21:20 +0000)
commitae4c008ec3d9b67e1adc09d619f972b0838e282b
tree630a88562311f15ec50712a00b864472ebea5f86
parent78d7070a590cfdd525d736fd6bd44f7939cb200b
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).
bin/sh/expand.c
bin/sh/sh.1
tools/regression/bin/sh/expansion/set-u2.0 [new file with mode: 0644]