mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 23:20:49 +02:00
small changes to some error messages; greatly expanded builtins tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user