From 57f00aa510f666d2820972a8a310defe77844294 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 23 Feb 2013 15:15:41 +0000 Subject: [PATCH] sh: Test that the exit status is 1 if read encounters EOF. --- tools/regression/bin/sh/builtins/read6.0 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tools/regression/bin/sh/builtins/read6.0 diff --git a/tools/regression/bin/sh/builtins/read6.0 b/tools/regression/bin/sh/builtins/read6.0 new file mode 100644 index 00000000000..2168e10c841 --- /dev/null +++ b/tools/regression/bin/sh/builtins/read6.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +: | read x +r=$? +[ "$r" = 1 ]