sh: Add a test for a fairly obscure case with aliases.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:34:40 +0000 (09:34 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:34:40 +0000 (09:34 -0800)
Obtained-from:  FreeBSD 224104

tools/regression/bin/sh/parser/alias6.0 [new file with mode: 0644]

diff --git a/tools/regression/bin/sh/parser/alias6.0 b/tools/regression/bin/sh/parser/alias6.0
new file mode 100644 (file)
index 0000000..2f42050
--- /dev/null
@@ -0,0 +1,6 @@
+# $FreeBSD: src/tools/regression/bin/sh/parser/alias6.0,v 1.1 2011/07/16 16:14:14 jilles Exp $
+
+alias alias0='| cat >/dev/null'
+
+eval '{ echo bad; } alias0'
+eval '(echo bad)alias0'