From 8c6cc7dad5e188bd93ee59de3155290e1fdce699 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 15 Feb 2015 19:48:29 +0000 Subject: [PATCH] sh: Add simple tests for globbing/splitting command substitution. --- bin/sh/tests/expansion/Makefile | 2 ++ bin/sh/tests/expansion/ifs5.0 | 4 ++++ bin/sh/tests/expansion/pathname5.0 | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 bin/sh/tests/expansion/ifs5.0 create mode 100644 bin/sh/tests/expansion/pathname5.0 diff --git a/bin/sh/tests/expansion/Makefile b/bin/sh/tests/expansion/Makefile index 027bc95f5f8d..0c3e89edf330 100644 --- a/bin/sh/tests/expansion/Makefile +++ b/bin/sh/tests/expansion/Makefile @@ -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 diff --git a/bin/sh/tests/expansion/ifs5.0 b/bin/sh/tests/expansion/ifs5.0 new file mode 100644 index 000000000000..ab0e64662fdf --- /dev/null +++ b/bin/sh/tests/expansion/ifs5.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +set -- $(echo a b c d) +[ "$#" = 4 ] diff --git a/bin/sh/tests/expansion/pathname5.0 b/bin/sh/tests/expansion/pathname5.0 new file mode 100644 index 000000000000..bc278124de4f --- /dev/null +++ b/bin/sh/tests/expansion/pathname5.0 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +[ `echo '/[e]tc'` = /etc ]