summary refs log tree commit diff
path: root/bin/cash/tests/builtins/read4.0
blob: 9a3a8f41e95301f7ac6b4afa71074715749e426d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/read4.0 212339 2010-09-08 20:35:43Z jilles $

printf '%s\n' '\a\ b c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\a b\ c'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\a\:b:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\a:b\:c'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\\\ a'	| { read a b; printf '%s\n' "x${a}x${b}x"; }
printf '%s\n' '\\\:a'	| { IFS=: read a b; printf '%s\n' "x${a}x${b}x"; }