sh: Test that the exit status is 1 if read encounters EOF.
This commit is contained in:
parent
b3d4294f3a
commit
57f00aa510
5
tools/regression/bin/sh/builtins/read6.0
Normal file
5
tools/regression/bin/sh/builtins/read6.0
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
: | read x
|
||||||
|
r=$?
|
||||||
|
[ "$r" = 1 ]
|
Loading…
Reference in New Issue
Block a user