small changes to some error messages; greatly expanded builtins tests

This commit is contained in:
Chet Ramey
2023-09-28 10:47:17 -04:00
parent b3958b3ab4
commit 00edd0ee50
71 changed files with 1330 additions and 179 deletions
+8 -3
View File
@@ -16,8 +16,6 @@
# invocation modes and errors
export BASH_ARGV0=this-bash
${THIS_SH} .
#${THIS_SH} --version -c 'exit 0' bash
@@ -29,10 +27,17 @@ ${THIS_SH} --badopt |& sed 's|^.*/bash|bash|'
${THIS_SH} --initfile |& sed 's|^.*/bash|bash|'
${THIS_SH} -q |& sed 's|^.*/bash|bash|'
${THIS_SH} -c 'echo $0'
export BASH_ARGV0=this-bash
${THIS_SH} -c 'echo $0 $BASH_ARGV0'
unset BASH_ARGV0
{ ${THIS_SH} -c 'echo $-' bash | grep c >/dev/null; } && echo '$- for -c includes c'
# BASHOPTS
${THIS_SH} ./invocation1.sub
# SHELLOPTS
${THIS_SH} ./invocation2.sub
: ${TMPDIR:=/tmp}
TDIR=$TMPDIR/invocation-$$
mkdir $TDIR || exit 1