sh: Add more tests for exotic IFS splitting.
This commit is contained in:
parent
b9ad20386c
commit
1a2e63b4e8
@ -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…
x
Reference in New Issue
Block a user