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
+30
View File
@@ -0,0 +1,30 @@
# start at a test suite for negative indexed array subscripts -- post bash-4.2
x=( 0 1 2 3 4 5)
declare -p x
unset 'x[-1]'
declare -p x
unset 'x[-2]'
declare -p x
unset 'x[-10]'
x[-2]=3
declare -p x
x+=( five )
declare -p x
x[-1]=5
declare -p x
x+=( [-1]=foo )
declare -p x
x[-1]=5
declare -p x
x[-2]+=four
declare -p x
echo "strlen(${x[-2]})" = ${#x[-2]}