On Tue, Mar 12, 2002 at 12:46:41PM +0100, Gabor Kiss [Bitman] wrote:
> Dear folks,
>
> bash(1) man page should be extended a bit. :-)
>
> read [-er] [-a aname] [-p prompt] [name ...]
> ...
> Common pitfalls:
> command | read var
> In this construct the outermost shell forks a subprocess
> for "read". "Read" sets variable "var" _in_his_own_
> environment, that will not effect the calling shell's
> environment.
See question E4 in the FAQ.
Regards,
Doug