zsh-workers
 help / color / mirror / code / Atom feed
* [bug] variables not exported to environment when declared private in parent scope
@ 2021-07-28  5:55 Stephane Chazelas
  0 siblings, 0 replies; only message in thread
From: Stephane Chazelas @ 2021-07-28  5:55 UTC (permalink / raw)
  To: Zsh hackers list

$ 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-28  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28  5:55 [bug] variables not exported to environment when declared private in parent scope Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).