On Tue, Aug 23, 2011 at 09:42:21AM -0400, Steven W. Orr wrote:
> Since require is a function, any variables that 
> are declared in a required module which declare global variables using 
> typeset then become local variables to the require function. Then after the 
> modules are loaded, the variables that used to be global are gone.

bash 4.2 adds "declare -g" to create global variables from within a function.

Reply via email to