summaryrefslogtreecommitdiffstats
path: root/bin/sh
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-01-25 14:59:08 +0000
committerjilles <jilles@FreeBSD.org>2014-01-25 14:59:08 +0000
commitf16aa3a7ff1ca0414aea2598f6b875568f9c70f3 (patch)
treef08698736e986bf93670217307fb604812a988c0 /bin/sh
parentd7761633d8e8047ff45b8eaa5f49657820ff9a56 (diff)
downloadFreeBSD-src-f16aa3a7ff1ca0414aea2598f6b875568f9c70f3.zip
FreeBSD-src-f16aa3a7ff1ca0414aea2598f6b875568f9c70f3.tar.gz
sh: Add tests for alias names after another alias.
Since the first alias's value does not end with a blank, the next word should not be checked for aliases.
Diffstat (limited to 'bin/sh')
-rw-r--r--bin/sh/tests/parser/Makefile2
-rw-r--r--bin/sh/tests/parser/alias12.06
-rw-r--r--bin/sh/tests/parser/alias13.06
3 files changed, 14 insertions, 0 deletions
diff --git a/bin/sh/tests/parser/Makefile b/bin/sh/tests/parser/Makefile
index 10da716..6803de3 100644
--- a/bin/sh/tests/parser/Makefile
+++ b/bin/sh/tests/parser/Makefile
@@ -16,6 +16,8 @@ FILES+= alias8.0
FILES+= alias9.0
FILES+= alias10.0
FILES+= alias11.0
+FILES+= alias12.0
+FILES+= alias13.0
FILES+= and-pipe-not.0
FILES+= case1.0
FILES+= case2.0
diff --git a/bin/sh/tests/parser/alias12.0 b/bin/sh/tests/parser/alias12.0
new file mode 100644
index 0000000..2e43791
--- /dev/null
+++ b/bin/sh/tests/parser/alias12.0
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias alias0=command
+alias true='echo bad'
+eval 'alias0 true'
diff --git a/bin/sh/tests/parser/alias13.0 b/bin/sh/tests/parser/alias13.0
new file mode 100644
index 0000000..53b949d
--- /dev/null
+++ b/bin/sh/tests/parser/alias13.0
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias command=command
+alias true='echo bad'
+eval 'command true'
OpenPOWER on IntegriCloud