Imported from ../bash-4.0-rc1.tar.gz.

This commit is contained in:
Jari Aalto 2009-01-12 13:36:28 +00:00
commit 3185942a52
666 changed files with 188710 additions and 54674 deletions

View file

@ -28,3 +28,13 @@ a=0123456789
echo ${a:1}
echo ${a: -1}
echo ${a: ${#a}-1}
# problem with bash through 3.2.33
oIFS="$IFS"
IFS=$'\n'
a=(A B C D)
b=("${a[@]}")
echo "${#b[@]}", "${b[@]}" # 4, A B C D -- OK
b=("${a[@]:2}")
echo "${#b[@]}", "${b[@]}" # 1, C D -- bug, should be 2, C D
IFS="$oIFS"