changes for PATH being the empty string; more minor asan fixes

This commit is contained in:
Chet Ramey
2023-03-17 16:03:11 -04:00
parent 437b73931c
commit deedd41cf4
10 changed files with 131 additions and 41 deletions
+9 -3
View File
@@ -31,11 +31,17 @@ trap -- '' SIGTERM
trap -- 'echo USR1' SIGUSR1
USR1
EXIT
./execscript: line 71: notthere: No such file or directory
./execscript: line 71: notthere: command not found
127
./execscript: line 74: notthere: No such file or directory
./execscript: line 73: notthere: command not found
127
./execscript: line 77: notthere: command not found
./execscript: line 75: notthere: command not found
127
./execscript: line 81: notthere: command not found
127
./execscript: line 83: notthere: command not found
127
./execscript: line 85: notthere: command not found
127
this is sh
this is sh
+10 -2
View File
@@ -65,15 +65,23 @@ ${THIS_SH} ./exec3.sub
rm -f $TMPDIR/bashenv
unset BASH_ENV
# these results should be the same as with an empty PATH
PATH=.
notthere
echo $?
command notthere
echo $?
command -p notthere
echo $?
# we're resetting the $PATH to empty, so this should be last
PATH=
notthere
echo $?
command notthere
echo $?
command -p notthere
echo $?