Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: path PATH
On Wed, Jan 25, 2023 at 5:58 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
>
> On 2023-01-25 08:43, Roman Perepelitsa wrote:
> >
> > All of these parameters are set. Here's how an unset parameter looks like:
>
> Maybe I'm using the wrong word. How do we say set to nothing?
>
> 5 /aWorking/Zsh/Source/Wk 0 $ zzz=; typeset -m zzz
> zzz=''
>
> 5 /aWorking/Zsh/Source/Wk 0 $ integer zzz=; typeset -m zzz
> zzz=0
>
> ... param exists, but has no value (excepting the default zero for
> integers).
These parameters have values. The following three lines are equivalent
(assuming that foo isn't set beforehand):
typeset foo
typeset foo=
typeset foo=""
These are also equivalent:
typeset -i foo
typeset -i foo=
typeset -i foo=""
typeset -i foo=0
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author