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

Re: More rabbit-holes with unset variables



On Thu, Nov 26, 2020 at 5:29 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Nov 26, 2020 at 1:31 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > And you don't find it inconsistent that the internal value is
> > *different* from the exported value?
>
> That's a loaded question, because to answer it requires conceding that
> there exists an exported value from which the internal value differs.
> There's no way to "see" the export namespace without forking an
> external process, so only the internal value matters.

No. The exported value exists whether you decide to look at it or not.

> > Plus this:
> >
> >   typeset -x FOO
> >
> > Is different than this:
> >
> >   typeset -x FOO=""
> >
> > ?

If this is not inconsistent, then nothing is.

So I guess nothing zsh ever does can be inconsistent, by definition.

Cheers.

-- 
Felipe Contreras




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