Bug#301433: acknowledged by developer (Re: Bug#301433: bash: variables revert to original values when exiting loop involving read)

2005-03-26 Thread Matthias Klose
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

Bug#301433: acknowledged by developer (Re: Bug#301433: bash: variables revert to original values when exiting loop involving read)

2005-03-26 Thread Norman H. Azadian
Di023923; Fri, 25 Mar 2005 23:29:14 +0100 (MET) From: Matthias Klose <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <[EMAIL PROTECTED]> Date: Fri, 25 Mar 2005 23:29:14 +0100 To: "Norman H. Azadian"

Bug#301433: bash: variables revert to original values when exiting loop involving read

2005-03-25 Thread Norman H. Azadian
Package: bash Version: 2.05b-24 Severity: important The following script illustrates the problem: #!/bin/sh val=initial cat <<-EOF | while read ;do first line second line EOF val=$REPLY echo "val is '