[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add a way to declare global variables
From: |
Stephane CHAZELAS |
Subject: |
Re: add a way to declare global variables |
Date: |
Sat, 12 Dec 2009 10:34:41 +0000 (UTC) |
User-agent: |
slrn/pre1.0.0-16 (Linux) |
2009-12-12, 11:28(+01), Bernd Eggink:
> Am 10.12.2009 10:40, schrieb konsolebox:
>
>> 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 second that. I'm missing this feature badly. Presently, you can only
> get around this restriction by using a lot of ugly and dangerous 'eval's.
[...]
For information, zsh has the -g typeset option for that.
--
Stéphane
- Re: add a way to declare global variables, (continued)
- Re: add a way to declare global variables, Chet Ramey, 2009/12/12
- Message not available
- Re: add a way to declare global variables, Stephane CHAZELAS, 2009/12/12
- Message not available
- Re: add a way to declare global variables, DennisW, 2009/12/12
- Re: add a way to declare global variables, Bernd Eggink, 2009/12/12
- Re: add a way to declare global variables, Bernd Eggink, 2009/12/12
Re: add a way to declare global variables, Bernd Eggink, 2009/12/12
Message not available
- Re: add a way to declare global variables,
Stephane CHAZELAS <=