mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-31 07:23:52 +02:00
commit bash-20190328 snapshot
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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
|
||||
@@ -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}
|
||||
|
||||
@@ -18,6 +18,9 @@ export PATH
|
||||
: ${THIS_SH:=../bash}
|
||||
export THIS_SH
|
||||
|
||||
: ${BUILD_DIR:=..}
|
||||
export BUILD_DIR
|
||||
|
||||
GPROF="gprof"
|
||||
|
||||
rm -f gmon.sum
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user