bug-bash
[Top][All Lists]
Advanced

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

Re: assigning variables at the end of a pipeline


From: Chet Ramey
Subject: Re: assigning variables at the end of a pipeline
Date: Sat, 27 Jan 2007 14:14:47 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Elmar Stellnberger wrote:

> Bash Version: 3.1
> Patch Level: 17
> Release Status: release
> 
> estellnb:~> echo xx | while read hug; do echo $hug; done
> xx
>> echo $hug
> sadasd
> 
> estellnb:~> echo xx | read hug; echo $hug

Please read the Bash FAQ, question E4.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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