sh: Test that the exit status is 1 if read encounters EOF.

This commit is contained in:
Jilles Tjoelker 2013-02-23 15:15:41 +00:00
parent b3d4294f3a
commit 57f00aa510

View File

@ -0,0 +1,5 @@
# $FreeBSD$
: | read x
r=$?
[ "$r" = 1 ]