1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/builtins/command6.0 218356 2011-02-05 23:00:24Z jilles $ 23df4d8b0SPeter AvalosPATH=/var/empty 33df4d8b0SPeter Avaloscase $(command -pV ls) in 43df4d8b0SPeter Avalos*/var/empty/ls*) 53df4d8b0SPeter Avalos echo "Failed: \$(command -pV ls) should not match */var/empty/ls*" ;; 63df4d8b0SPeter Avalos"ls is"*" "/*/ls) ;; 73df4d8b0SPeter Avalos*) 83df4d8b0SPeter Avalos echo "Failed: \$(command -pV ls) match \"ls is\"*\" \"/*/ls" ;; 93df4d8b0SPeter Avalosesac 103df4d8b0SPeter Avaloscommand -pV true 113df4d8b0SPeter Avaloscommand -pV /bin/ls 123df4d8b0SPeter Avalos 133df4d8b0SPeter Avalosfun() { 143df4d8b0SPeter Avalos : 153df4d8b0SPeter Avalos} 163df4d8b0SPeter Avaloscommand -pV fun 173df4d8b0SPeter Avaloscommand -pV break 183df4d8b0SPeter Avaloscommand -pV if 193df4d8b0SPeter Avaloscommand -pV { 203df4d8b0SPeter Avalos 213df4d8b0SPeter Avalosalias foo=bar 223df4d8b0SPeter Avaloscommand -pV foo 23