RE: Q: interoperability of local vars and option nounset
From:
Nardmann, Heiko
Subject:
RE: Q: interoperability of local vars and option nounset
Date:
Mon, 7 Mar 2011 10:40:19 +0100
[...]
> If your question is whether or not the call to `g' can result
> in an unset
> variable error even though f has a local copy already
> declared, the answer
> is no. That is ksh93-style static scoping, and bash does not have it.
>
Yes, that was my question. Thanks for the answer. I think that for developing
scripts it would be helpful to have 'nounset' optionally react on locally unset
variables, too.
Kind regards
Heiko
[Prev in Thread]
Current Thread
[Next in Thread]
RE: Q: interoperability of local vars and option nounset,
Nardmann, Heiko<=