summaryrefslogtreecommitdiff
path: root/testsuite/which
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/which')
-rw-r--r--testsuite/which/which-uses-default-path8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/which/which-uses-default-path b/testsuite/which/which-uses-default-path
new file mode 100644
index 0000000..e2a2f38
--- /dev/null
+++ b/testsuite/which/which-uses-default-path
@@ -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