1# $FreeBSD$ 2 3w='@ @' 4check() { 5 [ "$v" = "$w" ] || echo "Expected $w got $v" 6} 7 8command export v=$w 9check 10command command export v=$w 11check 12 13HOME=/known/value 14check() { 15 [ "$v" = ~ ] || echo "Expected $HOME got $v" 16} 17 18command export v=~ 19check 20command command export v=~ 21check 22 23check() { 24 [ "$v" = "x:$HOME" ] || echo "Expected x:$HOME got $v" 25} 26 27command export v=x:~ 28check 29command command export v=x:~ 30check 31