svn commit: r261160 - head/bin/sh/tests/parser
Jilles Tjoelker
jilles at FreeBSD.org
Sat Jan 25 14:59:09 UTC 2014
Author: jilles
Date: Sat Jan 25 14:59:08 2014
New Revision: 261160
URL: http://svnweb.freebsd.org/changeset/base/261160
Log:
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.
Added:
head/bin/sh/tests/parser/alias12.0 (contents, props changed)
head/bin/sh/tests/parser/alias13.0 (contents, props changed)
Modified:
head/bin/sh/tests/parser/Makefile
Modified: head/bin/sh/tests/parser/Makefile
==============================================================================
--- head/bin/sh/tests/parser/Makefile Sat Jan 25 14:02:02 2014 (r261159)
+++ head/bin/sh/tests/parser/Makefile Sat Jan 25 14:59:08 2014 (r261160)
@@ -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
Added: head/bin/sh/tests/parser/alias12.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias12.0 Sat Jan 25 14:59:08 2014 (r261160)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias alias0=command
+alias true='echo bad'
+eval 'alias0 true'
Added: head/bin/sh/tests/parser/alias13.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias13.0 Sat Jan 25 14:59:08 2014 (r261160)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias command=command
+alias true='echo bad'
+eval 'command true'
More information about the svn-src-all
mailing list