summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-09-22 12:52:41 +0000
committerjilles <jilles@FreeBSD.org>2012-09-22 12:52:41 +0000
commitc0470c839d9d3cd64ee4c9f0e5b94901716cf5de (patch)
tree5828d661e677a525a7f3ae1681819f61f31a9d4b /tools
parentd91f23ae3d2beb18cedf81e4ec13451d7db9c172 (diff)
downloadFreeBSD-src-c0470c839d9d3cd64ee4c9f0e5b94901716cf5de.zip
FreeBSD-src-c0470c839d9d3cd64ee4c9f0e5b94901716cf5de.tar.gz
sh: Add some tests for aliasing a utility to itself.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/parser/alias7.04
-rw-r--r--tools/regression/bin/sh/parser/alias8.04
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/parser/alias7.0 b/tools/regression/bin/sh/parser/alias7.0
new file mode 100644
index 0000000..b26f0dd
--- /dev/null
+++ b/tools/regression/bin/sh/parser/alias7.0
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+alias echo='echo a'
+[ "`eval echo b`" = "a b" ]
diff --git a/tools/regression/bin/sh/parser/alias8.0 b/tools/regression/bin/sh/parser/alias8.0
new file mode 100644
index 0000000..7fc2f15
--- /dev/null
+++ b/tools/regression/bin/sh/parser/alias8.0
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+alias echo='echo'
+[ "`eval echo b`" = b ]
OpenPOWER on IntegriCloud