On 4/12/12 4:21 PM, dethrophes wrote: > I don't think it helps me but thanks for the try. > I would say zhats correct behavior. the code in the functions is only > executed when you call the functions. So the first executed readonly > variable is preserved. > Anyway my problem isn't with how readonly is preserved, its with how when I > set readonly the variable seems to have a limited context even if I declare > it explicitly global.
Simple variables or associative arrays? If it's associative arrays with compound assignments, look at http://lists.gnu.org/archive/html/help-bash/2012-04/msg00000.html -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/