changes to quoting for some globbing characters; regularize error behavior of builtins that take numeric arguments and complain about too many arguments

This commit is contained in:
Chet Ramey
2023-10-11 11:40:08 -04:00
parent 09c32bc946
commit 7a698806d1
31 changed files with 4563 additions and 4369 deletions
+4 -2
View File
@@ -41,13 +41,15 @@ ${THIS_SH} ./invocation2.sub
# rudimentary pretty-print tests
${THIS_SH} ./invocation3.sub
${THIS_SH} --login -c 'logout'
: ${TMPDIR:=/tmp}
TDIR=$TMPDIR/invocation-$$
mkdir $TDIR || exit 1
SAVEPWD=$PWD
echo 'echo this is bash_logout' > $TDIR/.bash_logout
HOME=$TDIR ${THIS_SH} --login -c 'logout'
rm -f $TDIR/.bash_logout
# script that ends with a comment and no newline
printf 'echo a # comment' > $TDIR/x23.in
${THIS_SH} $TDIR/x23.in