From a3181dd833970b1aa99087c3e3647387116547f0 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 14 Jan 2002 18:30:10 +0000 Subject: Do not segfault if PATH is unset. --- testsuite/which/which-uses-default-path | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testsuite/which/which-uses-default-path (limited to 'testsuite/which') 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 -- cgit v1.1