Bash-4.3 distribution sources and documentation

This commit is contained in:
Chet Ramey
2014-02-26 09:36:43 -05:00
parent 4539d736f1
commit ac50fbac37
497 changed files with 129394 additions and 87597 deletions
+35
View File
@@ -0,0 +1,35 @@
# 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[@]}
declare -A foo
foo=( ['ab]']=bar )
echo ${!foo[@]}
echo ${foo[@]}