xref: /freebsd/bin/sh/tests/expansion/export1.0 (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1# $FreeBSD$
2
3w='@ vv=6'
4
5v=0 vv=0
6export \v=$w
7[ "$v" = "@" ] || echo "Expected @ got $v"
8[ "$vv" = "6" ] || echo "Expected 6 got $vv"
9
10HOME=/known/value
11
12export \v=~
13[ "$v" = \~ ] || echo "Expected ~ got $v"
14