busybox/testsuite/which/which-uses-default-path

9 lines
136 B
Plaintext
Raw Normal View History

2002-01-15 00:00:10 +05:30
BUSYBOX=$(type -p busybox)
echo $BUSYBOX
SAVED_PATH=$PATH
unset PATH
$BUSYBOX which ls
STATUS=$?
export PATH=$SAVED_PATH
return $STATUS