This website requires JavaScript.
Explore
Help
Register
Sign In
emo
/
busybox
Watch
1
Star
0
Fork
0
You've already forked busybox
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b230fdfa9d
busybox
/
testsuite
/
which
/
which-uses-default-path
5 lines
76 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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>
2014-01-23 19:11:53 +05:30
BUSYBOX=$(command -v busybox)
Do not segfault if PATH is unset.
2002-01-15 00:00:10 +05:30
SAVED_PATH=$PATH
unset PATH
$BUSYBOX which ls
Reference in New Issue
Copy Permalink