zsh-users
 help / color / mirror / code / Atom feed
* Checking if a variable is exported
@ 2016-10-21 20:27 Martijn Dekker
  2016-10-21 21:00 ` Eric Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martijn Dekker @ 2016-10-21 20:27 UTC (permalink / raw)
  To: zsh-users

Hi all,

Does zsh have a straightforward way for a script to check if a variable
is exported? The closest-to-straightforward way I know of is to parse
the output of 'typeset -p varname', which is hairy because the output
might include various options to the command.

Thanks,

- M.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-22  6:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-21 20:27 Checking if a variable is exported Martijn Dekker
2016-10-21 21:00 ` Eric Cook
2016-10-21 21:06 ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-10-22  5:57   ` Bart Schaefer
2016-10-21 21:12 ` Mikael Magnusson

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).