xref: /freebsd/bin/sh/tests/expansion/export1.0 (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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