---------- Forwarded message ----------
From:
Cuong Manh Le <cuong.manhle.vn@gmail.com>Date: Wed, Feb 24, 2016 at 11:14 AM
Subject: read builtin return non-zero status reason
To:
help-bash@gnu.orgThe bash read builtin documentation said that when read reached EOF, it's return non-zero status. So in:
read -d '' l <<- EOF
test
EOF
Did read return non-zero status because of it reached EOF or it failed to read the whole input because it could not find the delimiter?
IMHO, the second reason is correct.
Correct me if I'm wrong.
Thanks.