commit bash-20150731 snapshot

This commit is contained in:
Chet Ramey
2015-08-06 16:48:35 -04:00
parent 7afeb718cb
commit d54a780601
117 changed files with 354 additions and 197 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ PATH=$PATH:$BUILD_DIR
export THIS_SH PATH
rm -f /tmp/xx
export BASH_TSTOUT=/tmp/xx
rm -f ${BASH_TSTOUT}
/bin/sh "$@"
+3
View File
@@ -4,4 +4,7 @@ PATH=$PATH:$BUILD_DIR
export THIS_SH PATH
export BASH_TSTOUT=/tmp/xx
rm -f ${BASH_TSTOUT}
${THIS_SH} "$@"
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./alias.tests > /tmp/xx 2>&1
diff /tmp/xx alias.right && rm -f /tmp/xx
${THIS_SH} ./alias.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} alias.right && rm -f ${BASH_TSTOUT}
+4 -4
View File
@@ -3,10 +3,10 @@
: ${TMPDIR:=/tmp}
export TMPDIR
BASH_TMPOUT=/tmp/xx # for now
export BASH_TMPOUT
BASH_TSTOUT=/tmp/xx # for now
export BASH_TSTOUT
trap 'rm -f $BASH_TMPOUT' 0
trap 'rm -f $BASH_TSTOUT' 0
PATH=.:$PATH # just to get recho/zecho/printenv if not run via `make tests'
export PATH
@@ -21,7 +21,7 @@ export THIS_SH
${THIS_SH} ./version
rm -f ${BASH_TMPOUT}
rm -f ${BASH_TSTOUT}
echo Any output from any test, unless otherwise noted, indicates a possible anomaly
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./appendop.tests > /tmp/xx 2>&1
diff /tmp/xx appendop.right && rm -f /tmp/xx
${THIS_SH} ./appendop.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} appendop.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./arith.tests > /tmp/xx 2>&1
diff /tmp/xx arith.right && rm -f /tmp/xx
${THIS_SH} ./arith.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} arith.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./arith-for.tests > /tmp/xx 2>&1
diff /tmp/xx arith-for.right && rm -f /tmp/xx
${THIS_SH} ./arith-for.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} arith-for.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -2,5 +2,5 @@ echo "warning: all of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell" >&2
echo "warning: the BASH_ARGC and BASH_ARGV tests will fail if debugging support" >&2
echo "warning: has not been compiled into the shell" >&2
${THIS_SH} ./array.tests > /tmp/xx 2>&1
diff /tmp/xx array.right && rm -f /tmp/xx
${THIS_SH} ./array.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} array.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: all of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell" >&2
${THIS_SH} ./array-at-star > /tmp/xx 2>&1
diff /tmp/xx array2.right && rm -f /tmp/xx
${THIS_SH} ./array-at-star > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} array2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: all of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell" >&2
${THIS_SH} ./assoc.tests > /tmp/xx 2>&1
diff /tmp/xx assoc.right && rm -f /tmp/xx
${THIS_SH} ./assoc.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} assoc.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./braces.tests > /tmp/xx
diff /tmp/xx braces.right && rm -f /tmp/xx
${THIS_SH} ./braces.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} braces.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -2,5 +2,5 @@ echo "warning: some of these tests may fail if process substitution has not" >&2
echo "warning: been compiled into the shell or if the OS does not provide" >&2
echo "warning: /dev/fd." >&2
${THIS_SH} ./builtins.tests > /tmp/xx 2>&1
diff /tmp/xx builtins.right && rm -f /tmp/xx
${THIS_SH} ./builtins.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} builtins.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./case.tests > /tmp/xx 2>&1
diff /tmp/xx case.right && rm -f /tmp/xx
${THIS_SH} ./case.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} case.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./casemod.tests > /tmp/xx 2>&1
diff /tmp/xx casemod.right && rm -f /tmp/xx
${THIS_SH} ./casemod.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} casemod.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./comsub.tests > /tmp/xx 2>&1
diff /tmp/xx comsub.right && rm -f /tmp/xx
${THIS_SH} ./comsub.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} comsub.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./comsub-eof.tests > /tmp/xx 2>&1
diff /tmp/xx comsub-eof.right && rm -f /tmp/xx
${THIS_SH} ./comsub-eof.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} comsub-eof.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./comsub-posix.tests > /tmp/xx 2>&1
diff /tmp/xx comsub-posix.right && rm -f /tmp/xx
${THIS_SH} ./comsub-posix.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} comsub-posix.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -3,5 +3,5 @@ echo "warning: been compiled into the shell" >&2
echo "warning: some of these tests will fail if extended pattern matching has not" >&2
echo "warning: been compiled into the shell" >&2
${THIS_SH} ./cond.tests > /tmp/xx 2>&1
diff /tmp/xx cond.right && rm -f /tmp/xx
${THIS_SH} ./cond.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} cond.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./coproc.tests > /tmp/xx 2>&1
diff /tmp/xx coproc.right && rm -f /tmp/xx
${THIS_SH} ./coproc.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} coproc.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./cprint.tests > /tmp/xx 2>&1
diff /tmp/xx cprint.right && rm -f /tmp/xx
${THIS_SH} ./cprint.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} cprint.right && rm -f ${BASH_TSTOUT}
Executable → Regular
View File
Executable → Regular
View File
+4 -4
View File
@@ -1,5 +1,5 @@
${THIS_SH} ./dstack.tests > /tmp/xx 2>&1
diff /tmp/xx dstack.right && rm -f /tmp/xx
${THIS_SH} ./dstack.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} dstack.right && rm -f ${BASH_TSTOUT}
${THIS_SH} ./dstack2.tests > /tmp/xx 2>&1
diff /tmp/xx dstack2.right && rm -f /tmp/xx
${THIS_SH} ./dstack2.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} dstack2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./dollar-at-star > /tmp/xx 2>&1
diff /tmp/xx dollar.right && rm -f /tmp/xx
${THIS_SH} ./dollar-at-star > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} dollar.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./errors.tests > /tmp/xx 2>&1
diff /tmp/xx errors.right && rm -f /tmp/xx
${THIS_SH} ./errors.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} errors.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -5,5 +5,5 @@ echo "warning: \`/tmp/bash-notthere' not being found or \`/' being a directory"
echo "warning: produce diff output, please do not consider this a test failure" >&2
echo "warning: if diff output differing only in the location of the bash" >&2
echo "warning: binary appears, please do not consider this a test failure" >&2
${THIS_SH} ./execscript > /tmp/xx 2>&1
diff /tmp/xx exec.right && rm -f /tmp/xx
${THIS_SH} ./execscript > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} exec.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./exp.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx exp.right && rm -f /tmp/xx
${THIS_SH} ./exp.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} exp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./exportfunc.tests > /tmp/xx 2>&1
diff /tmp/xx exportfunc.right && rm -f /tmp/xx
${THIS_SH} ./exportfunc.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} exportfunc.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
PATH=$PATH:`pwd`
export PATH
${THIS_SH} ./extglob.tests | grep -v '^expect' > /tmp/xx
diff /tmp/xx extglob.right && rm -f /tmp/xx
${THIS_SH} ./extglob.tests | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} extglob.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
PATH=$PATH:`pwd`
export PATH
${THIS_SH} ./extglob2.tests | grep -v '^expect' > /tmp/xx
diff /tmp/xx extglob2.right && rm -f /tmp/xx
${THIS_SH} ./extglob2.tests | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} extglob2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
PATH=$PATH:`pwd`
export PATH
${THIS_SH} ./extglob3.tests > /tmp/xx
diff /tmp/xx extglob3.right && rm -f /tmp/xx
${THIS_SH} ./extglob3.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} extglob3.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,5 +1,5 @@
echo "warning: if you have exported functions defined in your environment," >&2
echo "warning: they may show up as diff output." >&2
echo "warning: if so, please do not consider this a test failure" >&2
${THIS_SH} ./func.tests > /tmp/xx 2>&1
diff /tmp/xx func.right && rm -f /tmp/xx
${THIS_SH} ./func.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} func.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./getopts.tests > /tmp/xx 2>&1
diff /tmp/xx getopts.right && rm -f /tmp/xx
${THIS_SH} ./getopts.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} getopts.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
PATH=$PATH:`pwd`
export PATH
${THIS_SH} ./glob.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx glob.right && rm -f /tmp/xx
${THIS_SH} ./glob.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} glob.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
PATH=$PATH:`pwd`
export PATH
${THIS_SH} ./globstar.tests > /tmp/xx 2>&1
diff /tmp/xx globstar.right && rm -f /tmp/xx
${THIS_SH} ./globstar.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} globstar.right && rm -f ${BASH_TSTOUT}
+8 -1
View File
@@ -1,4 +1,11 @@
#! /bin/sh
: ${TMPDIR:=/tmp}
export TMPDIR
BASH_TSTOUT=/tmp/xx # for now
export BASH_TSTOUT
trap 'rm -f $BASH_TSTOUT' 0
PATH=.:$PATH # just to get recho/zecho/printenv if not run via `make tests'
export PATH
@@ -15,7 +22,7 @@ rm -f gmon.sum
${THIS_SH} ./version
rm -f /tmp/xx
rm -f "$BASH_TSTOUT"
# prime the pump; gprof complains if gmon.sum is empty
[ -f bash.gmon ] && gprof -s ${THIS_SH} bash.gmon >/dev/null
+2 -2
View File
@@ -2,5 +2,5 @@ echo "warning: UNIX versions number signals and schedule processes differently."
echo "warning: If output differing only in line numbers is produced, please" >&2
echo "warning: do not consider this a test failure." >&2
${THIS_SH} ./heredoc.tests > /tmp/xx 2>&1
diff /tmp/xx heredoc.right && rm -f /tmp/xx
${THIS_SH} ./heredoc.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} heredoc.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./herestr.tests > /tmp/xx 2>&1
diff /tmp/xx herestr.right && rm -f /tmp/xx
${THIS_SH} ./herestr.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} herestr.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: all of these tests will fail if history has not been compiled" >&2
echo "warning: into the shell" >&2
${THIS_SH} ./histexp.tests > /tmp/xx 2>&1
diff /tmp/xx histexp.right && rm -f /tmp/xx
${THIS_SH} ./histexp.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} histexp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: all of these tests will fail if history has not been compiled" >&2
echo "warning: into the shell" >&2
${THIS_SH} ./history.tests > /tmp/xx 2>&1
diff /tmp/xx history.right && rm -f /tmp/xx
${THIS_SH} ./history.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} history.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./ifs.tests > /tmp/xx 2>&1
diff /tmp/xx ifs.right && rm -f /tmp/xx
${THIS_SH} ./ifs.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} ifs.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./ifs-posix.tests > /tmp/xx 2>&1
diff /tmp/xx ifs-posix.right && rm -f /tmp/xx
${THIS_SH} ./ifs-posix.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} ifs-posix.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} < ./input-line.sh > /tmp/xx
diff /tmp/xx input.right && rm -f /tmp/xx
${THIS_SH} < ./input-line.sh > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} input.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -4,5 +4,5 @@
echo "warning: some of these tests will fail if you do not have UTF-8" >&2
echo "warning: locales installed on your system." >&2
${THIS_SH} ./intl.tests > /tmp/xx
diff $AFLAG /tmp/xx intl.right && rm -f /tmp/xx
${THIS_SH} ./intl.tests > ${BASH_TSTOUT}
diff $AFLAG ${BASH_TSTOUT} intl.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./invert.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx invert.right && rm -f /tmp/xx
${THIS_SH} ./invert.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} invert.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./iquote.tests >/tmp/xx 2>&1
diff /tmp/xx iquote.right && rm -f /tmp/xx
${THIS_SH} ./iquote.tests >${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} iquote.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -3,5 +3,5 @@ echo "warning: into the shell" >&2
echo "warning: there may be a message regarding a cat process dying due to a" >&2
echo "warning: SIGHUP. Please disregard." >&2
${THIS_SH} ./jobs.tests > /tmp/xx 2>&1
diff /tmp/xx jobs.right && rm -f /tmp/xx
${THIS_SH} ./jobs.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} jobs.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./lastpipe.tests > /tmp/xx 2>&1
diff /tmp/xx lastpipe.right && rm -f /tmp/xx
${THIS_SH} ./lastpipe.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} lastpipe.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./mapfile.tests > /tmp/xx 2>&1
diff /tmp/xx mapfile.right && rm -f /tmp/xx
${THIS_SH} ./mapfile.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} mapfile.right && rm -f ${BASH_TSTOUT}
+10 -1
View File
@@ -3,6 +3,15 @@
# run-minimal - a version of run-all for shells configured with
# --enable-minimal-config
#
: ${TMPDIR:=/tmp}
export TMPDIR
BASH_TSTOUT=/tmp/xx # for now
export BASH_TSTOUT
trap 'rm -f $BASH_TSTOUT' 0
PATH=.:$PATH # just to get the right version of printenv
export PATH
@@ -16,7 +25,7 @@ export THIS_SH
${THIS_SH} ./version.mini
rm -f /tmp/xx
rm -f "$BASH_TSTOUT"
echo Testing ${THIS_SH}
echo Any output from any test, unless otherwise noted, indicates a possible anomaly
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./more-exp.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx more-exp.right && rm -f /tmp/xx
${THIS_SH} ./more-exp.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} more-exp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: some of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell" >&2
${THIS_SH} ./nameref.tests > /tmp/xx 2>&1
diff /tmp/xx nameref.right && rm -f /tmp/xx
${THIS_SH} ./nameref.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} nameref.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -6,5 +6,5 @@ echo "warning: if you have exported variables beginning with the string _Q," >&2
echo "warning: diff output may be generated. If so, please do not consider" >&2
echo "warning: this a test failure" >&2
${THIS_SH} ./new-exp.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx new-exp.right && rm -f /tmp/xx
${THIS_SH} ./new-exp.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} new-exp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./nquote.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote.right && rm -f /tmp/xx
${THIS_SH} ./nquote.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: several of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell." >&2
${THIS_SH} ./nquote1.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote1.right && rm -f /tmp/xx
${THIS_SH} ./nquote1.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote1.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: several of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell." >&2
${THIS_SH} ./nquote2.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote2.right && rm -f /tmp/xx
${THIS_SH} ./nquote2.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: several of these tests will fail if arrays have not" >&2
echo "warning: been compiled into the shell." >&2
${THIS_SH} ./nquote3.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote3.right && rm -f /tmp/xx
${THIS_SH} ./nquote3.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote3.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo warning: some of these tests will fail if you do not have UTF-8 >&2
echo warning: locales installed on your system >&2
${THIS_SH} ./nquote4.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote4.right && rm -f /tmp/xx
${THIS_SH} ./nquote4.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote4.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./nquote5.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx nquote5.right && rm -f /tmp/xx
${THIS_SH} ./nquote5.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} nquote5.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./parser.tests > /tmp/xx 2>&1
diff /tmp/xx parser.right && rm -f /tmp/xx
${THIS_SH} ./parser.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} parser.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./posix2.tests 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx posix2.right && rm -f /tmp/xx
${THIS_SH} ./posix2.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} posix2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./posixexp.tests > /tmp/xx 2>&1
diff /tmp/xx posixexp.right && rm -f /tmp/xx
${THIS_SH} ./posixexp.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} posixexp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./posixexp2.tests > /tmp/xx 2>&1
diff /tmp/xx posixexp2.right && rm -f /tmp/xx
${THIS_SH} ./posixexp2.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} posixexp2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./posixpat.tests > /tmp/xx
diff /tmp/xx posixpat.right && rm -f /tmp/xx
${THIS_SH} ./posixpat.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} posixpat.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./posixpipe.tests > /tmp/xx 2>&1
diff /tmp/xx posixpipe.right && rm -f /tmp/xx
${THIS_SH} ./posixpipe.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} posixpipe.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./precedence > /tmp/xx
diff /tmp/xx prec.right && rm -f /tmp/xx
${THIS_SH} ./precedence > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} prec.right && rm -f ${BASH_TSTOUT}
+3 -3
View File
@@ -2,6 +2,6 @@
#( diff -a ./printf.tests ./printf.tests >/dev/null 2>&1 ) && AFLAG=-a
# use cat -v (and assume it's there) to make control chars visible
${THIS_SH} ./printf.tests 2>&1 | cat -v > /tmp/xx
#diff $AFLAG /tmp/xx printf.right && rm -f /tmp/xx
diff /tmp/xx printf.right && rm -f /tmp/xx
${THIS_SH} ./printf.tests 2>&1 | cat -v > ${BASH_TSTOUT}
#diff $AFLAG ${BASH_TSTOUT} printf.right && rm -f ${BASH_TSTOUT}
diff ${BASH_TSTOUT} printf.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./quote.tests >/tmp/xx 2>&1
diff /tmp/xx quote.right && rm -f /tmp/xx
${THIS_SH} ./quote.tests >${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} quote.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
echo "warning: please do not consider output differing only in the amount of" >&2
echo "warning: white space to be an error." >&2
${THIS_SH} ./read.tests > /tmp/xx 2>&1
diff /tmp/xx read.right && rm -f /tmp/xx
${THIS_SH} ./read.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} read.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -3,5 +3,5 @@ echo "warning: produce diff output." >&2
echo "warning: if the text of an error message concerning \`redir1.*' not being" >&2
echo "warning: found or messages concerning bad file descriptors produce diff" >&2
echo "warning: output, please do not consider it a test failure" >&2
${THIS_SH} ./redir.tests > /tmp/xx 2>&1
diff /tmp/xx redir.right && rm -f /tmp/xx
${THIS_SH} ./redir.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} redir.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./rhs-exp.tests 2>&1 > /tmp/xx
diff /tmp/xx rhs-exp.right && rm -f /tmp/xx
${THIS_SH} ./rhs-exp.tests 2>&1 > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} rhs-exp.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./rsh.tests > /tmp/xx 2>&1
diff /tmp/xx rsh.right && rm -f /tmp/xx
${THIS_SH} ./rsh.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} rsh.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./set-e.tests > /tmp/xx
diff /tmp/xx set-e.right && rm -f /tmp/xx
${THIS_SH} ./set-e.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} set-e.right && rm -f ${BASH_TSTOUT}
Executable → Regular
View File
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./shopt.tests > /tmp/xx 2>&1
diff /tmp/xx shopt.right && rm -f /tmp/xx
${THIS_SH} ./shopt.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} shopt.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./strip.tests > /tmp/xx
diff /tmp/xx strip.right && rm -f /tmp/xx
${THIS_SH} ./strip.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} strip.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,4 +1,4 @@
unset GROUPS UID 2>/dev/null
${THIS_SH} ./test.tests >/tmp/xx 2>&1
diff /tmp/xx test.right && rm -f /tmp/xx
${THIS_SH} ./test.tests >${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} test.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./tilde.tests > /tmp/xx
diff /tmp/xx tilde.right && rm -f /tmp/xx
${THIS_SH} ./tilde.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} tilde.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./tilde2.tests > /tmp/xx
diff /tmp/xx tilde2.right && rm -f /tmp/xx
${THIS_SH} ./tilde2.tests > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} tilde2.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -2,5 +2,5 @@ echo "warning: UNIX versions number signals and schedule processes differently."
echo "warning: If output differing only in line numbers is produced, please" >&2
echo "warning: do not consider this a test failure." >&2
${THIS_SH} ./trap.tests > /tmp/xx 2>&1
diff /tmp/xx trap.right && rm -f /tmp/xx
${THIS_SH} ./trap.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} trap.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./type.tests > /tmp/xx 2>&1
diff /tmp/xx type.right && rm -f /tmp/xx
${THIS_SH} ./type.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} type.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./varenv.sh 2>&1 | grep -v '^expect' > /tmp/xx
diff /tmp/xx varenv.right && rm -f /tmp/xx
${THIS_SH} ./varenv.sh 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
diff ${BASH_TSTOUT} varenv.right && rm -f ${BASH_TSTOUT}
+2 -2
View File
@@ -1,2 +1,2 @@
${THIS_SH} ./vredir.tests > /tmp/xx 2>&1
diff /tmp/xx vredir.right && rm -f /tmp/xx
${THIS_SH} ./vredir.tests > ${BASH_TSTOUT} 2>&1
diff ${BASH_TSTOUT} vredir.right && rm -f ${BASH_TSTOUT}