commit bash-20120706 snapshot

This commit is contained in:
Chet Ramey
2012-08-13 11:54:32 -04:00
parent 87c1f4ece2
commit 9f178efb2e
44 changed files with 34972 additions and 16191 deletions
+7 -1
View File
@@ -2,12 +2,18 @@
bar=one
typeset -n foo=bar
# normal unset unsets both nameref and variable it references
# normal unset unsets only variable nameref references
# need unset -n to unset nameref itself
unset foo
echo "expect <unset>"
recho ${bar-unset}
echo "expect <unset>"
recho ${foo-unset}
echo "expect <bar>"
recho ${!foo}
unset -n foo
echo "expect <unset>"
recho "${!foo-unset}"
readonly bar=two
typeset -n foo=bar