Do not segfault if PATH is unset.
This commit is contained in:
8
testsuite/which/which-uses-default-path
Normal file
8
testsuite/which/which-uses-default-path
Normal file
@@ -0,0 +1,8 @@
|
||||
BUSYBOX=$(type -p busybox)
|
||||
echo $BUSYBOX
|
||||
SAVED_PATH=$PATH
|
||||
unset PATH
|
||||
$BUSYBOX which ls
|
||||
STATUS=$?
|
||||
export PATH=$SAVED_PATH
|
||||
return $STATUS
|
Reference in New Issue
Block a user