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

Re: One possible answer to typeset vs. unset



On Fri, Dec 4, 2020 at 4:51 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Dec 4, 2020 at 3:04 AM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
>
> > Next, we need a way to make sure $empty[(i|I)] returns something
> > sensible (that would be for both approaches).
>
> That's the last thing on my list, too.

Unexpected complication here:  On the master branch for empty="" ,
both of those return 0, rather than 0 and 1 as they do for empty=().
They return empty string for an unset, including for missing array
elements (including missing hash elements).




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