bug-bash
[Top][All Lists]
Advanced

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

Re: iGlobal variable not updated in while loop when reading from pipe


From: James Wiegand
Subject: Re: iGlobal variable not updated in while loop when reading from pipe
Date: Mon, 1 Dec 2003 16:22:25 -0500




Sorry for the confusion, Paul.  I did not realize that the value of $$ did
not change in a sub-shell.  My first thought was that there was a subshell,
but when I tried to test that idea, I looked at the value of $$ which did
not change.

Thanks for the prompt reply!

Jim Wiegand, BSEE, MSE
address@hidden
Senior Systems Engineer
Fiberlink Communications
215 793 6554
Fiberlink Communications


(Embedded image moved to file: pic27350.gif)


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.


                                                                                
                                  
                      address@hidden                                            
                                 
                      (Paul Jarc)              To:       address@hidden         
                          
                                               cc:       address@hidden, 
address@hidden                   
                      12/01/2003 04:02         Subject:  Re: iGlobal variable 
not updated in while loop when      
                      PM                        reading from pipe               
                                  
                                                                                
                                  




address@hidden wrote:
>         The variables free, use, and siz are supposed to accumulate the
> variables read in from the pipeline.  However, once the while loop is
done,
> their value outside of the loop is still 0.

See entry E4 in the bash FAQ.


paul

Attachment: pic27350.gif
Description: GIF image


reply via email to

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