summary refs log tree commit diff
path: root/bin/cash/tests/parser/alias18.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/parser/alias18.0')
-rw-r--r--bin/cash/tests/parser/alias18.08
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/cash/tests/parser/alias18.0 b/bin/cash/tests/parser/alias18.0
new file mode 100644
index 00000000..48e54029
--- /dev/null
+++ b/bin/cash/tests/parser/alias18.0
@@ -0,0 +1,8 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/parser/alias18.0 317039 2017-04-16 22:10:02Z jilles $
+
+v=1
+alias a='alias a=v=2
+v=3
+a'
+eval a
+[ "$v" = 2 ]