blob: 3ed91e76e2a556d79b47e757f5470ab1667f215d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $FreeBSD: releng/12.0/bin/sh/tests/expansion/export2.0 238468 2012-07-15 10:19:43Z jilles $
w='@ @'
check() {
[ "$v" = "$w" ] || echo "Expected $w got $v"
}
export v=$w
check
HOME=/known/value
check() {
[ "$v" = ~ ] || echo "Expected $HOME got $v"
}
export v=~
check
check() {
[ "$v" = "x:$HOME" ] || echo "Expected x:$HOME got $v"
}
export v=x:~
check
|