]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/expansion/export3.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / export3.0
1 # $FreeBSD: head/bin/sh/tests/expansion/export3.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 command export v=$w
9 check
10 command command export v=$w
11 check
12
13 HOME=/known/value
14 check() {
15 [ "$v" = ~ ] || echo "Expected $HOME got $v"
16 }
17
18 command export v=~
19 check
20 command command export v=~
21 check
22
23 check() {
24 [ "$v" = "x:$HOME" ] || echo "Expected x:$HOME got $v"
25 }
26
27 command export v=x:~
28 check
29 command command export v=x:~
30 check