xref: /dflybsd-src/tools/regression/bin/sh/builtins/read4.0 (revision 3e3895bf4584c1562faf4533cbd97026ee6a8dcf)
1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/builtins/read4.0 212339 2010-09-08 20:35:43Z jilles $
23df4d8b0SPeter Avalos
33df4d8b0SPeter Avalosprintf '%s\n' '\a\ b c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
43df4d8b0SPeter Avalosprintf '%s\n' '\a b\ c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
53df4d8b0SPeter Avalosprintf '%s\n' '\a\:b:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
63df4d8b0SPeter Avalosprintf '%s\n' '\a:b\:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
73df4d8b0SPeter Avalosprintf '%s\n' '\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
83df4d8b0SPeter Avalosprintf '%s\n' '\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
93df4d8b0SPeter Avalosprintf '%s\n' '\\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
103df4d8b0SPeter Avalosprintf '%s\n' '\\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
11