mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-14 15:40:51 +02:00
commit bash-20080110 snapshot
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -496,6 +496,8 @@ one
|
||||
123456789
|
||||
9
|
||||
9
|
||||
4, A B C D
|
||||
2, C D
|
||||
h
|
||||
h
|
||||
--blah
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user