[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: read builtin return non-zero status reason

From: Greg Wooledge
Subject: Re: Fwd: read builtin return non-zero status reason
Date: Wed, 24 Feb 2016 08:37:36 -0500
User-agent: Mutt/

On Wed, Feb 24, 2016 at 11:31:40AM +0700, Cuong Manh Le wrote:
> I send this email to help-bash but it seems to be inactive. Please help me
> with this problem. Thanks.

help-bash is active.  You probably just didn't wait long enough.
If this is your first message to help-bash, your message is probably
waiting in some moderation/antispam queue.

> The bash read builtin documentation said that when read reached EOF, it's
> return non-zero status. So in:
> read -d '' l <<- EOF
>     test
> 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?

It's the same thing.  "Reached EOF before seeing the delimiter" is the
whole, combined reason.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]