read7.0   [plain text]


# $FreeBSD$

{ errmsg=`read x <&- 2>&1 >&3`; } 3>&1
r=$?
[ "$r" -ge 2 ] && [ "$r" -le 128 ] && [ -n "$errmsg" ]