mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sh: Test that the exit status is 1 if read encounters EOF.
This commit is contained in:
parent
b3d4294f3a
commit
57f00aa510
1 changed files with 5 additions and 0 deletions
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 a new issue