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