commit bash-20200306 snapshot

This commit is contained in:
Chet Ramey
2020-03-09 16:35:44 -04:00
parent 47c7369e84
commit 8f576adedb
13 changed files with 317 additions and 274 deletions
+2 -2
View File
@@ -147,8 +147,8 @@ expect 20
20
expect 5 20
5 20
expect 5 30
5 30
expect 5 20
5 20
expect 2 40
2 40
expect 5 20
+1 -1
View File
@@ -36,7 +36,7 @@ echo expect 5 20
func
echo $? $var
echo expect 5 30
echo expect 5 20
var=30 func
echo $? $var
+2 -2
View File
@@ -465,10 +465,10 @@ declare -n ref="var"
declare -a var=([0]="Y")
declare -- ref="Y"
declare -- var="X"
ref=Y
declare -- ref="Y"
declare -- ref="Y"
./nameref20.sub: line 74: declare: var: not found
ref=Y
declare -- ref="Y"
declare -n ref="var"
declare -A var=([2]="" )
declare -n ref="var"
+7 -7
View File
@@ -153,17 +153,17 @@ outside: declare -- var="outside"
outside 1.0: var=one
outside 1.1: var=one
inside func: var=two
outside 2.0: var=two
outside 2.0: var=<unset>
inside func: var=two
outside 2.1: var=two
outside 2.1: var=global
inside func1: var=value
outside 3.0: var=value
inside func2: var=global
outside 4.0: var=outside
foo: hello world
after foo: var=outside
after foo: var=global
bar: hello world
after bar: var=bar: hello world
after bar: var=global
./varenv13.sub: line 16: `var[0]': not a valid identifier
./varenv13.sub: line 16: `var[@]': not a valid identifier
./varenv13.sub: line 14: declare: var: not found
@@ -231,12 +231,12 @@ foo=showfoo environment foo=showfoo
outside 1.0: foo=<unset>
foo=showfoo environment foo=showfoo
foo=showfoo environment foo=showfoo
outside 1.1: foo=foo
outside 1.1: foo=<unset>
foo=<unset> environment foo=
outside 2.0: foo=<unset>
foo=foo environment foo=foo
foo=foo environment foo=foo
outside 2.1: foo=foo
foo=<unset> environment foo=
outside 2.1: foo=<unset>
a=z
a=b
a=z