On 5/3/10 8:21 AM, Greg Wooledge wrote: > On Sat, May 01, 2010 at 04:26:16AM -0500, Dennis Williamson wrote: >> I prefer to avoid using eval by using declare, but declare inside a >> function makes the variable local. Wouldn't it be nice to have a >> global flag (declare -g) like zsh's typeset -g. > > Yeah. It definitely would. (This comes up every once in a while in > IRC, too.)
I am planning a feature like this for a future release. It may end up in bash-4.2. Chet -- ``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/