RE: Q: interoperability of local vars and option nounset

2011-03-07 Thread Nardmann, Heiko
[...] > 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 t

Q: interoperability of local vars and option nounset

2011-02-23 Thread Nardmann, Heiko
Hi together, short: is there any way to get informed about unset local variable while having option 'nounset' activated? Long: the problem with 'local' is that variable declared this way are visible inside the children, too. So the behaviour of option 'nounset' depends on the way a function is ca