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

Re: path PATH



On Thu, Jan 26, 2023 at 1:00 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
=> BTW, reading up on the types, the doc seems rather incomplete.  I
> identify: scalar, array, association, integer, float, float-double, and

"double" is effectively just a modifier also, the basic type is still float.

> modifiers: hideval, hide, readonly, special, tied, unique, export(ed),
> undefined and local ... but the doc only mentions some of them in
> passing, there's only explicit explanation of a few of them -- that I
> can find.

That's because those words were chosen to have an obvious mapping onto
the switches accepted by the typeset command, and it didn't seem
necessary to explain the switches twice.

double = -E
hideval = -H
hide = -h
readonly = -r

etc.  The only one that doesn't have such a direct mapping is
"special", which just means it's known internally to zsh so
referencing or changing its value might have side-effects.




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