summary refs log tree commit diff
path: root/bin/1sh/tests/expansion/readonly1.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/1sh/tests/expansion/readonly1.0')
-rw-r--r--bin/1sh/tests/expansion/readonly1.07
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/1sh/tests/expansion/readonly1.0 b/bin/1sh/tests/expansion/readonly1.0
new file mode 100644
index 00000000..7a8f7335
--- /dev/null
+++ b/bin/1sh/tests/expansion/readonly1.0
@@ -0,0 +1,7 @@
+# $FreeBSD: releng/12.1/bin/sh/tests/expansion/readonly1.0 238468 2012-07-15 10:19:43Z jilles $
+
+w='@ @'
+
+v=0 HOME=/known/value
+readonly v=~:~/:$w
+[ "$v" = "$HOME:$HOME/:$w" ] || echo "Expected $HOME/:$w got $v"