aboutsummaryrefslogtreecommitdiff
path: root/testsuite/which
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-01-23 14:41:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2014-01-23 14:41:53 +0100
commitbf2f2229bb108a7bdd39326eb4e886e2f47df960 (patch)
tree0dfec85700309ce50e391f22398dd21372c20fe6 /testsuite/which
parent821e64316a93d2760ad60c326e1a59aabc3e6441 (diff)
downloadbusybox-bf2f2229bb108a7bdd39326eb4e886e2f47df960.tar.gz
testsuite: fix last "which" change
In commit afa63b2dcdc9b9 I replaced `type -p' with `command -pv'. But actually it is wrong, the right substitution is `command -v'. We need to find our busybox which is in the first directory in $PATH, so `command -p' should not be used because it uses default PATH, not current value of PATH where our busybox binary resides. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/which')
-rw-r--r--testsuite/which/which-uses-default-path2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/which/which-uses-default-path b/testsuite/which/which-uses-default-path
index 349583dcc..92b6018c9 100644
--- a/testsuite/which/which-uses-default-path
+++ b/testsuite/which/which-uses-default-path
@@ -1,4 +1,4 @@
-BUSYBOX=$(command -pv busybox)
+BUSYBOX=$(command -v busybox)
SAVED_PATH=$PATH
unset PATH
$BUSYBOX which ls