Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Checking if a variable is exported
- X-seq: zsh-users 22017
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Checking if a variable is exported
- Date: Fri, 21 Oct 2016 22:27:20 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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