[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash-2.04 bug
From: |
Chet Ramey |
Subject: |
Re: bash-2.04 bug |
Date: |
Wed, 10 Jan 2001 15:21:39 -0500 |
> I found a bug in bash-2.04. If a function that declares local variables as
> read-only (declare -r) is invoked recursivly, an error results. The script
> below demonstrates the problem:
It's a bug that it worked before. Using `declare' to create local variables
restricts the variable's scope to a function *and its children*. A variable
declared readonly in a function should be readonly when that function calls
any other function, including itself.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bash-2.04 bug,
Chet Ramey <=