]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/expansion/export2.0
e8862b8af2848d7fdc080b1426d32317e7806634
[apple/shell_cmds.git] / sh / tests / expansion / export2.0
1 # $FreeBSD: head/bin/sh/tests/expansion/export2.0 238468 2012-07-15 10:19:43Z jilles $
2
3 w='@ @'
4 check() {
5 [ "$v" = "$w" ] || echo "Expected $w got $v"
6 }
7
8 export v=$w
9 check
10
11 HOME=/known/value
12 check() {
13 [ "$v" = ~ ] || echo "Expected $HOME got $v"
14 }
15
16 export v=~
17 check
18
19 check() {
20 [ "$v" = "x:$HOME" ] || echo "Expected x:$HOME got $v"
21 }
22
23 export v=x:~
24 check