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

Checking if a variable is exported



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.



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