commit bash-20191108 snapshot

This commit is contained in:
Chet Ramey
2019-11-13 16:41:51 -05:00
parent f48a489585
commit 5e061bb08b
18 changed files with 163 additions and 8 deletions
+2
View File
@@ -11,3 +11,5 @@ contents
hi
./comsub-eof5.sub: line 13: warning: here-document at line 11 delimited by end-of-file (wanted `EOF')
hi
./comsub-eof6.sub: line 1: unexpected EOF while looking for matching `)'
+2
View File
@@ -9,3 +9,5 @@ ${THIS_SH} ./comsub-eof3.sub
${THIS_SH} ./comsub-eof4.sub
${THIS_SH} ./comsub-eof5.sub
${THIS_SH} ./comsub-eof6.sub
+5
View File
@@ -0,0 +1,5 @@
read foo <<EOF
$(seq 10
EOF
echo "$foo"
+3 -1
View File
@@ -117,6 +117,8 @@ searchable/.
4:
5: [qwe/
6:
a\*b
a\*b*
argv[1] = <a>
argv[2] = <abc>
argv[3] = <abd>
@@ -131,7 +133,7 @@ argv[2] = <abc>
argv[3] = <abd>
argv[4] = <abe>
tmp/l1 tmp/l2 tmp/*4 tmp/l3
./glob.tests: line 63: no match: tmp/*4
./glob.tests: line 64: no match: tmp/*4
argv[1] = <bdir/>
argv[1] = <*>
argv[1] = <a*>
+1
View File
@@ -28,6 +28,7 @@ ${THIS_SH} ./glob4.sub
${THIS_SH} ./glob5.sub
${THIS_SH} ./glob6.sub
${THIS_SH} ./glob7.sub
${THIS_SH} ./glob8.sub
MYDIR=$PWD # save where we are
+29
View File
@@ -0,0 +1,29 @@
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
TESTDIR=${TMPDIR}/glob-test-$$
mkdir ${TESTDIR}
cd $TESTDIR || {
echo "$TESTDIR: cannot cd" >&2
exit 1
}
trap 'cd $OLDPWD && rm -rf $TESTDIR' EXIT
var='a\'
touch 'a*b' 'a\*b'
printf '%s\n' $var\*b*
var1=a\\$'\001'
printf '%s\n' $var1\*b*
+2 -1
View File
@@ -672,4 +672,5 @@ PASS;1 foo;2 foo;
after: PASS
argv[1] = </>
argv[1] = </>
./new-exp.tests: line 634: ABXD: parameter unset
./new-exp.tests: line 640: ABXD: parameter unset
+6
View File
@@ -626,6 +626,12 @@ a=/a
recho "/${a%/*}"
recho "/${a///a/}"
patfunc()
{
echo ${1##*"${1##*}"}
}
patfunc foo
# caused core dumps because of bad bracket expression parsing in bash-5.0
eval : $'${x/#[0\xef\xbf\xbd\\Z[:]]}'