2 .
"${srcdir=.}/init.sh"; path_prepend_ .
6 ${CHECKER} test-readtokens || fail
=1
9 echo a
:b
:c
: > exp || fail
=1
10 printf a
:b
:c |
${CHECKER} test-readtokens
: > out
2>&1 || fail
=1
11 compare exp out || fail
=1
13 # Use NUL as the delimiter.
14 echo a
:b
:c
: > exp || fail
=1
15 printf 'a\0b\0c' |
${CHECKER} test-readtokens
'\0' > out
2>&1 || fail
=1
16 compare exp out || fail
=1
18 # Two delimiter bytes, and adjacent delimiters in the input.
19 echo a
:b
:c
: > exp || fail
=1
20 printf a
:-:b-
:c
:: |
${CHECKER} test-readtokens
:- > out
2>&1 || fail
=1
21 compare exp out || fail
=1