On Tue, Sep 10, 2013 at 12:36 PM, Michał Górny <mgo...@gentoo.org> wrote: >> > Nope. 'insinto' sets INSDESTTREE. Due to lack of proper scoping >> > support in bash, we need to localize this variable to restore previous >> > 'insinto' scope after leaving the function. >> >> Actually the only reason you are able to do that, is *because* bash has >> proper >> scoping support. > > Proper scoping support would actually either disallow something like > this or disallow something designed as 'insinto'. The 'local' in bash > in the worst thing you could expect. >
>From what I can remember from college, It seems like a pretty typical case of dynamic scope. Why do you find this to be bad?