commit bash-20110622 snapshot

This commit is contained in:
Chet Ramey
2011-12-29 13:09:50 -05:00
parent 3443670e48
commit 51f7ea3672
47 changed files with 5974 additions and 144 deletions
+21
View File
@@ -0,0 +1,21 @@
# problems with fix for posix interp 217 introduced in bash-4.2
declare -ax array
array[$(( $( echo -n 1001 ) - 1001 ))]=1
echo ${array[0]}
echo ${array[@]}
unset 'array[0]'
array[$( echo -n 1001 ) - 1001 ]=1
echo ${array[0]}
unset 'array[0]'
array[$(( 1001 - $( echo -n 1001 ) ))]=1
echo ${array[0]}
array[$(( 1001 - $( echo -n 1001 ) ))]=1
echo ${array[0]}
unset 'array[0]'
array[1001 - $( echo -n 1001 )]=1
echo ${array[0]}