Norman H. Azadian writes:
> Huh?  That doesn't sound like any shell I've used over the past 25 years, 
> including bash.  The only thing I find in the manpage about variable 
> scoping is using the local declaration inside functions.

that should be consistently broken over the past 25 years.

read ..   | while ... done;   go on

process1    spawned process   process1



> If I change the while loop to be a for loop:
> 
>       for f in first second ;do
> 
> I get the expected results, namely that the final value is 'second', not 
> 'initial'.
> 
> It also works if I take out the read, e.g.,:

yes, you don't spawn a new shell.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to