summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/expansion/export3.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/expansion/export3.0')
-rw-r--r--shell_cmds/sh/tests/expansion/export3.030
1 files changed, 30 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/expansion/export3.0 b/shell_cmds/sh/tests/expansion/export3.0
new file mode 100644
index 0000000..b82fcc1
--- /dev/null
+++ b/shell_cmds/sh/tests/expansion/export3.0
@@ -0,0 +1,30 @@
+# $FreeBSD: head/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