xref: /freebsd/bin/sh/tests/builtins/read7.0 (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1# $FreeBSD$
2
3{ errmsg=`read x <&- 2>&1 >&3`; } 3>&1
4r=$?
5[ "$r" -ge 2 ] && [ "$r" -le 128 ] && [ -n "$errmsg" ]
6