Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Is there a way to set a var above it's current scope?



Hi,
Somewhere in the man I saw something like: if you use export you'll always set in global scope, regardless of any local variable collision. However, (){local q; export q=1;};print $q doesn't print 1. Is there any way of achieving this?



Messages sorted by: Reverse Date, Date, Thread, Author