On Fri, Feb 18, 2011 at 8:45 AM, Chet Ramey <chet.ra...@case.edu> wrote:
>
> The -g option exists solely to create variables at the global scope.  The
> intent is that functions be able to declare global variables with
> attributes if they desire.  It doesn't change the scoping rules or
> variable resolution behavior.
>
>
A global var can always be declared out of a func (usually at the beginning
of the script) so what's the main intention of introducing a new `-g'
option?

And If we can declare/modify a global var in a func but we cannot read it
from in the func I don't think the feature is very useful to people.


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



-- 
``... And it's a bash bug. I don't understand why bash people can't accept
that.'' - Linus Torvalds

Reply via email to