commit bash-20161230 snapshot

This commit is contained in:
Chet Ramey
2017-01-03 14:37:53 -05:00
parent e297b0591d
commit ec157dfefb
88 changed files with 593 additions and 411 deletions
+17 -1
View File
@@ -26,6 +26,23 @@ add_X_echo ref
echo outside "$ref"
unset ref
# same test, but assigning nameref variable circular reference directly
xxx_func()
{
typeset -n xxx=xxx
xxx=foo
declare -p xxx
echo $FUNCNAME: inside: xxx = $xxx
}
xxx=7
echo before: $xxx
xxx_func
echo after: $xxx
unset xxx
unset -f xxx_func
typeset -n ref=ref
typeset -n ref=re ref+=f
@@ -85,4 +102,3 @@ v=(0 1)
declare -n n=v[1]
unset n
declare -p n v