sh: Add more tests for exotic IFS splitting.

This commit is contained in:
Jilles Tjoelker 2015-03-31 20:59:37 +00:00
parent 2f61288c80
commit 739d568935
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280920
3 changed files with 13 additions and 0 deletions

View file

@ -49,6 +49,8 @@ FILES+= ifs2.0
FILES+= ifs3.0
FILES+= ifs4.0
FILES+= ifs5.0
FILES+= ifs6.0
FILES+= ifs7.0
FILES+= length1.0
FILES+= length2.0
FILES+= length3.0

View file

@ -0,0 +1,6 @@
# $FreeBSD$
IFS=': '
x=': :'
set -- $x
[ "$#|$1|$2|$3" = "2|||" ]

View file

@ -0,0 +1,5 @@
# $FreeBSD$
IFS=2
set -- $((123))
[ "$#|$1|$2|$3" = "2|1|3|" ]