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

[bug] variables not exported to environment when declared private in parent scope



$ zmodload zsh/param/private
$ f() { private a=1; g; }
$ g() { typeset -p a; printenv a || print -u2 not there; }
$ export a=0
$ f
export a=0
not there


See how g does seem to think $a is exported, but still it's not
passed to printenv.

-- 
Stephane






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