1 # $FreeBSD: head/bin/sh/tests/builtins/command7.0 218356 2011-02-05 23:00:24Z jilles $
6 if ! eval "[ $* ]"; then
12 check '"$(PATH=/libexec command -V ld-elf.so.1)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"'
13 check '"$(PATH=/libexec command -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"'
14 check '"$(PATH=/libexec command -pv ld-elf.so.1)" = ""'
15 check '"$(PATH=/libexec command -pv ld-elf.so.1; :)" = ""'
19 check '"$(command -V ld-elf.so.1)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"'
20 check '"$(command -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"'
21 check '"$(command -pv ld-elf.so.1)" = ""'
22 check '"$(command -pv ld-elf.so.1; :)" = ""'
26 check '"$(command -v ls)" = ""'
27 case $(command -pv ls) in
30 echo "Failed: \$(command -pv ls) match /*/ls"
31 : $((failures += 1)) ;;
34 exit $((failures > 0))