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