[Top][All Lists]

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

Re: read doesn't work with piped stdin

From: Bob Proulx
Subject: Re: read doesn't work with piped stdin
Date: Mon, 19 Nov 2007 01:09:50 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Blaine Simpson wrote:
>       read silently fails when stdin is piped to it.  -u switch does
> not help.  Redirection works fine.

Same as the other problem with exit in a pipeline.  Pipelines operate
in subshells.  Environment variables are local to the process.  Please
see question E4 in the bash FAQ for more information.



reply via email to

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