commit bash-20080110 snapshot

This commit is contained in:
Chet Ramey committed 2011-12-07 09:17:25 -05:00
1 parent b246176e88
commit c2a47ea936
29 files changed
+9736 -8615

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/chet/bash/bash-current
BUILD_DIR=/usr/local/build/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
+2
View File
@@ -496,6 +496,8 @@ one
123456789
9
9
4, A B C D
2, C D
h
h
--blah
+10
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"