xref: /freebsd/bin/sh/tests/builtins/read4.0 (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1
2printf '%s\n' '\a\ b c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
3printf '%s\n' '\a b\ c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
4printf '%s\n' '\a\:b:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
5printf '%s\n' '\a:b\:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
6printf '%s\n' '\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
7printf '%s\n' '\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
8printf '%s\n' '\\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
9printf '%s\n' '\\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
10