svn commit: r278806 - head/bin/sh/tests/expansion
Jilles Tjoelker
jilles at FreeBSD.org
Sun Feb 15 19:48:31 UTC 2015
Author: jilles
Date: Sun Feb 15 19:48:29 2015
New Revision: 278806
URL: https://svnweb.freebsd.org/changeset/base/278806
Log:
sh: Add simple tests for globbing/splitting command substitution.
Added:
head/bin/sh/tests/expansion/ifs5.0 (contents, props changed)
head/bin/sh/tests/expansion/pathname5.0 (contents, props changed)
Modified:
head/bin/sh/tests/expansion/Makefile
Modified: head/bin/sh/tests/expansion/Makefile
==============================================================================
--- head/bin/sh/tests/expansion/Makefile Sun Feb 15 18:02:05 2015 (r278805)
+++ head/bin/sh/tests/expansion/Makefile Sun Feb 15 19:48:29 2015 (r278806)
@@ -48,6 +48,7 @@ FILES+= ifs1.0
FILES+= ifs2.0
FILES+= ifs3.0
FILES+= ifs4.0
+FILES+= ifs5.0
FILES+= length1.0
FILES+= length2.0
FILES+= length3.0
@@ -62,6 +63,7 @@ FILES+= pathname1.0
FILES+= pathname2.0
FILES+= pathname3.0
FILES+= pathname4.0
+FILES+= pathname5.0
FILES+= plus-minus1.0
FILES+= plus-minus2.0
FILES+= plus-minus3.0
Added: head/bin/sh/tests/expansion/ifs5.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/expansion/ifs5.0 Sun Feb 15 19:48:29 2015 (r278806)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+set -- $(echo a b c d)
+[ "$#" = 4 ]
Added: head/bin/sh/tests/expansion/pathname5.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/expansion/pathname5.0 Sun Feb 15 19:48:29 2015 (r278806)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+[ `echo '/[e]tc'` = /etc ]
More information about the svn-src-all
mailing list