summary refs log tree commit diff
path: root/bin/cash/tests/expansion/export1.0
blob: 0547499287c750a230be5bced9546c2fa2445019 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $FreeBSD: releng/12.0/bin/sh/tests/expansion/export1.0 238430 2012-07-13 22:29:02Z jilles $

w='@ vv=6'

v=0 vv=0
export \v=$w
[ "$v" = "@" ] || echo "Expected @ got $v"
[ "$vv" = "6" ] || echo "Expected 6 got $vv"

HOME=/known/value

export \v=~
[ "$v" = \~ ] || echo "Expected ~ got $v"