diff options
author | Matt Kraai <kraai@debian.org> | 2002-01-14 18:30:10 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2002-01-14 18:30:10 +0000 |
commit | a3181dd833970b1aa99087c3e3647387116547f0 (patch) | |
tree | 60f79ccf57bb1028f73230e677ad628b21f28d16 /testsuite | |
parent | ba552523fafaf687c6c6cf6113fe7b6c1b786920 (diff) | |
download | busybox-w32-a3181dd833970b1aa99087c3e3647387116547f0.tar.gz busybox-w32-a3181dd833970b1aa99087c3e3647387116547f0.tar.bz2 busybox-w32-a3181dd833970b1aa99087c3e3647387116547f0.zip |
Do not segfault if PATH is unset.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/which/which-uses-default-path | 8 |
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 000000000..e2a2f3893 --- /dev/null +++ b/testsuite/which/which-uses-default-path | |||
@@ -0,0 +1,8 @@ | |||
1 | BUSYBOX=$(type -p busybox) | ||
2 | echo $BUSYBOX | ||
3 | SAVED_PATH=$PATH | ||
4 | unset PATH | ||
5 | $BUSYBOX which ls | ||
6 | STATUS=$? | ||
7 | export PATH=$SAVED_PATH | ||
8 | return $STATUS | ||