mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-23 05:47:59 +02:00
commit bash-20110608 snapshot
This commit is contained in:
@@ -772,6 +772,7 @@ tests/array7.sub f
|
||||
tests/array8.sub f
|
||||
tests/array9.sub f
|
||||
tests/array10.sub f
|
||||
tests/array11.sub f
|
||||
tests/array-at-star f
|
||||
tests/array2.right f
|
||||
tests/assoc.tests f
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
BUILD_DIR=/usr/local/build/bash/bash-current
|
||||
BUILD_DIR=/usr/local/build/chet/bash/bash-current
|
||||
THIS_SH=$BUILD_DIR/bash
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
|
||||
@@ -341,3 +341,11 @@ ednesday
|
||||
onday
|
||||
uesday
|
||||
ednesday
|
||||
version[agent]
|
||||
version.agent
|
||||
version[agent]
|
||||
version.agent
|
||||
version[agent] foo[bar]
|
||||
version.agent bowl
|
||||
foobar] foo foo[bar]
|
||||
bleh bbb bleh
|
||||
|
||||
@@ -388,3 +388,5 @@ ${THIS_SH} ./array8.sub
|
||||
${THIS_SH} ./array9.sub
|
||||
|
||||
${THIS_SH} ./array10.sub
|
||||
|
||||
${THIS_SH} ./array11.sub
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# problems with associative array keys with ] and unbalanced [ ]
|
||||
# fixed after bash-4.2
|
||||
|
||||
declare -A foo
|
||||
|
||||
foo=(["version[agent]"]=version.agent)
|
||||
|
||||
echo ${!foo[@]}
|
||||
echo ${foo[@]}
|
||||
|
||||
unset foo
|
||||
declare -A foo
|
||||
foo["version[agent]"]=version.agent
|
||||
|
||||
echo ${!foo[@]}
|
||||
echo ${foo[@]}
|
||||
|
||||
declare foo["foo[bar]"]=bowl
|
||||
|
||||
echo ${!foo[@]}
|
||||
echo ${foo[@]}
|
||||
|
||||
declare -A array2["foo[bar]"]=bleh
|
||||
|
||||
array2["foobar]"]=bleh
|
||||
array2["foo"]=bbb
|
||||
|
||||
echo ${!array2[@]}
|
||||
echo ${array2[@]}
|
||||
Reference in New Issue
Block a user