mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-09 21:20:50 +02:00
changes for PATH being the empty string; more minor asan fixes
This commit is contained in:
+9
-3
@@ -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
@@ -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 $?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user