zsh-users
 help / color / mirror / code / Atom feed
* declare -p and -H (hideval)
@ 2017-05-12 16:21 Sebastian Gniazdowski
  2017-05-12 22:03 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Gniazdowski @ 2017-05-12 16:21 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2017-05-15 20:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12 16:21 declare -p and -H (hideval) Sebastian Gniazdowski
2017-05-12 22:03 ` Bart Schaefer
2017-05-14  1:04   ` Daniel Shahaf
2017-05-14 17:22     ` Bart Schaefer
2017-05-15 13:36       ` Daniel Shahaf
2017-05-15 20:03         ` Bart Schaefer

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