diff options
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/tests/expansion/export3.0 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/1sh/tests/expansion/export3.0 b/bin/1sh/tests/expansion/export3.0 new file mode 100644 index 00000000..cc981eac --- /dev/null +++ b/bin/1sh/tests/expansion/export3.0 @@ -0,0 +1,30 @@ +# $FreeBSD: releng/12.1/bin/sh/tests/expansion/export3.0 238468 2012-07-15 10:19:43Z jilles $ + +w='@ @' +check() { + [ "$v" = "$w" ] || echo "Expected $w got $v" +} + +command export v=$w +check +command command export v=$w +check + +HOME=/known/value +check() { + [ "$v" = ~ ] || echo "Expected $HOME got $v" +} + +command export v=~ +check +command command export v=~ +check + +check() { + [ "$v" = "x:$HOME" ] || echo "Expected x:$HOME got $v" +} + +command export v=x:~ +check +command command export v=x:~ +check |