testsuite: fix last "which" change
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 23 Jan 2014 13:41:53 +0000 (14:41 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 23 Jan 2014 13:41:53 +0000 (14:41 +0100)
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>
testsuite/which/which-uses-default-path

index 349583dcc93ddd5517d20cf38476759e0c7c7055..92b6018c9d51dc93be51c49e1816446ebf11f14c 100644 (file)
@@ -1,4 +1,4 @@
-BUSYBOX=$(command -pv busybox)
+BUSYBOX=$(command -v busybox)
 SAVED_PATH=$PATH
 unset PATH
 $BUSYBOX which ls