commit bash-20170217 snapshot

This commit is contained in:
Chet Ramey
2017-02-22 11:10:10 -05:00
parent ac495185aa
commit 514049fa8e
37 changed files with 604 additions and 828 deletions
+5
View File
@@ -271,4 +271,9 @@ ${THIS_SH} ./dollar-star6.sub
# problem through bash-4.2
${THIS_SH} ./dollar-star7.sub
# tests for expansions of $* (unquoted) when IFS is null and word splitting is
# not going to be performed.
# problem through bash-4.4 in some parameter expansion contexts
${THIS_SH} ./dollar-star8.sub
exit 0
+2
View File
@@ -33,10 +33,12 @@ unset a
unset IFS
set a b "c d"
printf '<%s>' $* ; echo
printf '<%s>' ${q-$*} ; echo
IFS=
set a b "c d"
printf '<%s>' $* ; echo
printf '<%s>' ${q-$*} ; echo
IFS=:
set a b
+21
View File
@@ -0,0 +1,21 @@
IFS=
set "abc" "def ghi" "jkl"
set ${1+$*}
printf '<%s>\n' "$#" "$@"
set "abc" "def ghi" "jkl"
set $*
printf '<%s>\n' "$#" "$@"
printf '<%s>\n' $* ;
printf '<%s>\n' ${q:-$*}
printf '<%s>\n' "${q:-$*}"
IFS=:
printf '<%s>\n' $* ;
printf '<%s>\n' ${q:-$*}
printf '<%s>\n' "${q:-$*}"
unset -v IFS
printf '<%s>\n' $* $@
+32
View File
@@ -177,6 +177,8 @@ ab
a b
a b
<a><b><c><d>
<a><b><c><d>
<a><b><c d>
<a><b><c d>
<a><b>
<a:b>
@@ -478,3 +480,33 @@ argv[2] = <b>
argv[3] = <c>
argv[4] = <d>
argv[1] = <a b c d>
<3>
<abc>
<def ghi>
<jkl>
<3>
<abc>
<def ghi>
<jkl>
<abc>
<def ghi>
<jkl>
<abc>
<def ghi>
<jkl>
<abcdef ghijkl>
<abc>
<def ghi>
<jkl>
<abc>
<def ghi>
<jkl>
<abc:def ghi:jkl>
<abc>
<def>
<ghi>
<jkl>
<abc>
<def>
<ghi>
<jkl>
+5 -1
View File
@@ -210,11 +210,13 @@ argv[1] = <correct>
argv[2] = <a>
argv[1] = <correct>
argv[2] = <a>
./exp7.sub: line 5: INFORM: dequote_string: string with bare CTLESC
argv[1] = <^A>
argv[1] = <3>
argv[2] = <^C>
argv[3] = <^C>
argv[4] = <^C>
./exp7.sub: line 10: INFORM: dequote_string: string with bare CTLESC
argv[1] = <^A>
argv[1] = <x^Ay^?z>
argv[1] = <x^Ay^?z>
@@ -291,7 +293,9 @@ var=abc:def ghi:jkl
abcdef ghijkl
abcdef ghijkl
abcdef ghijkl
abcdef ghijkl
abc
def ghi
jkl
abcdef ghijkl
abcdef ghijkl
abcdef ghijkl