]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/expansion/export2.0
shell_cmds-207.11.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / export2.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/expansion/export2.0 238468 2012-07-15 10:19:43Z jilles $
71aad674
A
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