Imported from ../bash-4.0-rc1.tar.gz.
This commit is contained in:
parent
f1be666c7d
commit
3185942a52
666 changed files with 188710 additions and 54674 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue