summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/testsuite/which/which-uses-default-path
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/router/busybox/testsuite/which/which-uses-default-path')
-rwxr-xr-xrelease/src/router/busybox/testsuite/which/which-uses-default-path7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/src/router/busybox/testsuite/which/which-uses-default-path b/release/src/router/busybox/testsuite/which/which-uses-default-path
new file mode 100755
index 00000000..f612aeb5
--- /dev/null
+++ b/release/src/router/busybox/testsuite/which/which-uses-default-path
@@ -0,0 +1,7 @@
+BUSYBOX=$(type -p busybox)
+SAVED_PATH=$PATH
+unset PATH
+$BUSYBOX which ls
+STATUS=$?
+export PATH=$SAVED_PATH
+return $STATUS