[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: YAQAGV (Yet Another Question About Global Variables)
From: |
Greg Wooledge |
Subject: |
Re: YAQAGV (Yet Another Question About Global Variables) |
Date: |
Tue, 23 Aug 2011 09:52:54 -0400 |
User-agent: |
Mutt/1.4.2.3i |
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.