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

Re: declare -p and -H (hideval)

Bart Schaefer wrote on Fri, May 12, 2017 at 15:03:02 -0700:
> On May 12,  6:21pm, Sebastian Gniazdowski wrote:
> }
> } I use "declare -p" there, when user selects a parameter. No value is
> } being shown for -H parameters. Is this correct?
> Yes.  Manual for -p option says:
>       If the -p option is given, parameters and values are printed
>       in the form of a typeset command with an assignment,
>       regardless of other flags and options.  Note that the -H flag
>       on parameters is respected; no value will be shown for these
>       parameters.
> This takes precedence over the -m flag, etc.

The fact remains that the "does not apply" clause that Sebastian quoted
does not match the implementation.  The question is just which of them
should be fixed to match the other.  (Code archeology may answer this,
but I'm not going to do it tonight.)

> } Any way to avoid -H effects with typeset -p?
> It would appear not.

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