Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
declare -p and -H (hideval)
- X-seq: zsh-users 22692
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: declare -p and -H (hideval)
- Date: Fri, 12 May 2017 18:21:41 +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
Hello,
written small plugin to fullscreen flash all interactive-created parameters https://github.com/zdharma/zbrowse.
I use "declare -p" there, when user selects a parameter. No value is being shown for -H parameters. Is this correct? Manual says:
Hide value: specifies that tt(typeset) will not display the value of the
parameter when listing parameters; the display for such parameters is
always as if the `tt(PLUS())' flag had been given. Use of the parameter is
in other respects normal, and the option does not apply if the parameter is
specified by name, or by pattern with the tt(-m) option.
The ", and ..." at the end would suggest that if "declare -p NAME" or "declare -pm NAME" will be used, the value will be shown, but this doesn't happen.
Any way to avoid -H effects with typeset -p?
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author