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 3:13 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Nov 26, 2020 at 3:22 AM Oliver Kiddle <opk@xxxxxxx> wrote:

> > This does change how I regard zsh's behaviour. It isn't zsh taking a
> > different but equally valid approach on an extension but an sh
> > incompatibility. It once was a bug even if now too entrenched.
>
> It doesn't export the empty string at the time the parameter is
> declared, but it does consistently set it to empty string internally:

And you don't find it inconsistent that the internal value is
*different* from the exported value?

Plus this:

  typeset -x FOO

Is different than this:

  typeset -x FOO=""

?

-- 
Felipe Contreras




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