bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add a way to declare global variables


From: Matthew Woehlke
Subject: Re: add a way to declare global variables
Date: Fri, 11 Dec 2009 19:11:00 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.23) Gecko/20090825 Fedora/2.0.0.23-1.fc10 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0

konsolebox wrote:
I hope the development team will also consider adding a way in bash to
declare global variables inside a function perhaps either with an
option in typeset or declare like -g (same as zsh) and/or a builtin
function like global as similar to local.

I thought variables in functions were /always/ global unless declared local?

--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
"[Microsoft's] license tells you what a netbook is." -- Steve Ballmer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]