commit bash-20190328 snapshot

This commit is contained in:
Chet Ramey
2019-04-01 15:44:20 -04:00
parent 31321bf1b2
commit befdddcbf1
30 changed files with 462 additions and 61 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR
export THIS_SH PATH
export THIS_SH PATH BUILD_DIR
: ${TMPDIR:=/tmp}
export TMPDIR
+1 -1
View File
@@ -101,6 +101,6 @@ argv[1] = <two>
argv[2] = <threefi>
argv[3] = <ve>
comsub here-string
./heredoc.tests: line 133: warning: here-document at line 131 delimited by end-of-file (wanted `EOF')
./heredoc.tests: line 136: warning: here-document at line 134 delimited by end-of-file (wanted `EOF')
hi
there
+3
View File
@@ -121,6 +121,9 @@ ${THIS_SH} ./heredoc2.sub
${THIS_SH} ./heredoc3.sub
${THIS_SH} ./heredoc4.sub
# heredoc tests that use different size documents to test pipe implementation
${THIS_SH} ./heredoc5.sub
echo $(
cat <<< "comsub here-string"
)
+28
View File
@@ -0,0 +1,28 @@
# test here documents for sizes > 65536 (max pipe capacity I've seen),
# 4096 < size < 65536 (for smaller pipe capacities)
# 512 < size < 4096 (PIPE_BUF)
#
# There are tests in other scripts for here documents shorter than 512 bytes
#
# This should return the same results regardless of the pipe capacity
: ${TMPDIR:=/tmp}
FILENAME=${TMPDIR}/catfile-$$
catfile()
{
cat <<- EOF > $FILENAME
$(cat $1)
EOF
cmp $FILENAME $1
rm -f $FILENAME
}
if [ -f $BUILD_DIR/y.tab.c ]; then
catfile $BUILD_DIR/y.tab.c
else
catfile ../y.tab.c
fi
catfile ${BUILD_DIR}/config.h
catfile ${BUILD_DIR}/version.h
+4
View File
@@ -14,6 +14,7 @@ trap 'rm -f $BASH_TSTOUT' 0 1 2 3 15
PATH=.:$PATH # just to get recho/zecho/printenv if not run via `make tests'
export PATH
# unset BASH_ENV only if it is set
[ "${BASH_ENV+set}" = "set" ] && unset BASH_ENV
# can't reliably do it for SHELLOPTS; SHELLOPTS is readonly in bash
@@ -28,6 +29,9 @@ fi
: ${THIS_SH:=../bash}
export THIS_SH
: ${BUILD_DIR:=..}
export BUILD_DIR
${THIS_SH} ./version
rm -f ${BASH_TSTOUT}
+3
View File
@@ -18,6 +18,9 @@ export PATH
: ${THIS_SH:=../bash}
export THIS_SH
: ${BUILD_DIR:=..}
export BUILD_DIR
GPROF="gprof"
rm -f gmon.sum
+3
View File
@@ -26,6 +26,9 @@ export PATH
: ${THIS_SH:=../bash}
export THIS_SH
: ${BUILD_DIR:=..}
export BUILD_DIR
${THIS_SH} ./version.mini
rm -f "$BASH_TSTOUT"