bug-bash
[Top][All Lists]
Advanced

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

Re: contents of whole arrays dissapears leaving while read loop


From: Chet Ramey
Subject: Re: contents of whole arrays dissapears leaving while read loop
Date: Thu, 26 Mar 2009 16:46:38 -0400
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Lennart Schultz wrote:

> Bash Version: 4.0
> Patch Level: 10
> Release Status: release
> 
> Description:
> In the construct
> cat file|while read line
> do
> done
> the content of any arry assignments in the loop dissapears leaving the loop:

Please read the Bash FAQ, question E4.
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

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]