> 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/