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

Re: path PATH



On Tue, Jan 24, 2023 at 3:28 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> 'hideval' surely is clearly helpful when some params have values that no
> moral should ever look at. But maybe half of the hideval params are also
> marked 'hide', which ... well, what does that add?  Manual has nothing
> to say about it.

This was actually mentioned earlier in this same thread.

On Sun, Jan 22, 2023 at 11:20 AM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Jan 22, 2023 at 4:30 AM Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
> >
> >       [[ -$2- == *-hide-* ]] && return 1
>
> I'm curious why you chose to do this?  The "hide" attribute means that
> a local does not preserve semantics of a special global, not that it's
> name is invisible.

The manual DOES explain this.  Search "man zshall" for "hide", it's
about the 5th occurrence.




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