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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247190

View File

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