sh: Test that the exit status is 1 if read encounters EOF.
This commit is contained in:
parent
b3d4294f3a
commit
57f00aa510
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247190
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