5 if [ "$roothome" = "~root" ]; then
6 echo "~root is not expanded!"
18 if [ "x$result" = "x$expected" ]; then
22 echo "For $code, expected $expected actual $result"
26 testcase 'set -- ~' '1|/tmp'
27 testcase 'set -- ~/foo' '1|/tmp/foo'
28 testcase 'set -- x~' '1|x~'
29 testcase 'set -- ~root' "1|$roothome"
31 testcase 'set -- "$h"' '1|/tmp'
34 testcase 'set -- ~' '1|/tmp'
35 testcase 'set -- ~/foo' '1|/tmp/foo'
36 testcase 'set -- $h' '2|/t|p'
39 testcase 'set -- $t' '1|~'
44 testcase 'set -- $r' '1|~'
49 testcase 'set -- $r' '1|~'
54 testcase 'set -- $r' '1|~/.'