opnsense-src/tools/regression/bin/sh/builtins/command6.0
Jilles Tjoelker e029e397f3 sh: Weaken some tests to allow /rescue/sh to pass everything.
/rescue/sh has a different _PATH_STDPATH which affects command -p.
2011-02-05 23:00:24 +00:00

22 lines
381 B
Text

# $FreeBSD$
PATH=/var/empty
case $(command -pV ls) in
*/var/empty/ls*)
echo "Failed: \$(command -pV ls) should not match */var/empty/ls*" ;;
"ls is"*" "/*/ls) ;;
*)
echo "Failed: \$(command -pV ls) match \"ls is\"*\" \"/*/ls" ;;
esac
command -pV true
command -pV /bin/ls
fun() {
:
}
command -pV fun
command -pV break
command -pV if
command -pV {
alias foo=bar
command -pV foo