summary refs log tree commit diff
path: root/bin/cash/tests/builtins/read7.0
blob: 2df732b911af03a7ee6f18f11f3ea0e09e3e41c1 (plain) (blame)
1
2
3
4
5
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/read7.0 250214 2013-05-03 15:28:31Z jilles $

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