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