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

Re: declare -p and -H (hideval)



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.

} Any way to avoid -H effects with typeset -p?

It would appear not.



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