mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
sh: Add more tests for exotic IFS splitting.
This commit is contained in:
parent
2f61288c80
commit
739d568935
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280920
|
@ -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
|
||||
|
|
6
bin/sh/tests/expansion/ifs6.0
Normal file
6
bin/sh/tests/expansion/ifs6.0
Normal file
|
@ -0,0 +1,6 @@
|
|||
# $FreeBSD$
|
||||
|
||||
IFS=': '
|
||||
x=': :'
|
||||
set -- $x
|
||||
[ "$#|$1|$2|$3" = "2|||" ]
|
5
bin/sh/tests/expansion/ifs7.0
Normal file
5
bin/sh/tests/expansion/ifs7.0
Normal file
|
@ -0,0 +1,5 @@
|
|||
# $FreeBSD$
|
||||
|
||||
IFS=2
|
||||
set -- $((123))
|
||||
[ "$#|$1|$2|$3" = "2|1|3|" ]
|
Loading…
Reference in a new issue