bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] builtin read from pipe (echo foo | read) does not affect the r


From: Chet Ramey
Subject: Re: [BUG] builtin read from pipe (echo foo | read) does not affect the result variable
Date: Wed, 12 Dec 2001 08:44:55 -0500

> Under RedHat Linux 7.0 (i386) (this may affect other Linux distributions and
> versions), the "read" builtin function does consume a line from standard
> input, BUT it does not perform the variable assignment, when the standard
> input is coming from a shell pipe.

Read the Bash FAQ, question E4.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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