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
jwiegand@fiberlink.com
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.


                                                                                
                                  
                      prj@po.cwru.edu                                           
                                  
                      (Paul Jarc)              To:       jwiegand@fiberlink.com 
                                  
                                               cc:       bug-bash@gnu.org, 
mcleff@fiberlink.com                   
                      12/01/2003 04:02         Subject:  Re: iGlobal variable 
not updated in while loop when      
                      PM                        reading from pipe               
                                  
                                                                                
                                  




jwiegand@fiberlink.com 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]