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
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"
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 '
3 matches
Mail list logo