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