diff options
author | jilles <jilles@FreeBSD.org> | 2015-02-15 19:48:29 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-02-15 19:48:29 +0000 |
commit | 8f5603742f310f7d973f480187b5e3d6870a40cf (patch) | |
tree | a78992bd547e6dbeb33987ea760fc1f107197466 /bin | |
parent | aa3b216a6024b7af176a61d25a911d448245a201 (diff) | |
download | FreeBSD-src-8f5603742f310f7d973f480187b5e3d6870a40cf.zip FreeBSD-src-8f5603742f310f7d973f480187b5e3d6870a40cf.tar.gz |
sh: Add simple tests for globbing/splitting command substitution.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/tests/expansion/Makefile | 2 | ||||
-rw-r--r-- | bin/sh/tests/expansion/ifs5.0 | 4 | ||||
-rw-r--r-- | bin/sh/tests/expansion/pathname5.0 | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/bin/sh/tests/expansion/Makefile b/bin/sh/tests/expansion/Makefile index 027bc95..0c3e89e 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 0000000..ab0e646 --- /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 0000000..bc27812 --- /dev/null +++ b/bin/sh/tests/expansion/pathname5.0 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +[ `echo '/[e]tc'` = /etc ] |