Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: path PATH
On Sun, Jan 29, 2023 at 2:43 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> On Sun, Jan 29, 2023, at 5:33 PM, Ray Andrews wrote:
>
> > BTW since 'typeset -p' claims to display information in the same format
> > as for the recreation of the parameter:
> >
> > ... but if I run that output as a new command, the -H is clearly lost.
>
> Feels like a bug.
The explicit purpose of the hideval attribute is to prevent "typeset
-p" (and several other things) from displaying/restoring the value.
-p [ N ]
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author