From e1b445f9343bb27896344efcd4fdc8728fbf85ac Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 7 Jan 2017 14:19:04 +0100 Subject: [PATCH] Document read return status Fixes #3711. --- doc_src/read.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc_src/read.txt b/doc_src/read.txt index 33829070c..3f41a871b 100644 --- a/doc_src/read.txt +++ b/doc_src/read.txt @@ -43,6 +43,7 @@ If `-a` or `--array` is provided, only one variable name is allowed and the toke See the documentation for `set` for more details on the scoping rules for variables. +When read reaches the end-of-file (EOF) instead of the separator, it returns 1. If not, it returns 0. \subsection read-example Example