Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: One possible answer to typeset vs. unset
- X-seq: zsh-workers 47728
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: One possible answer to typeset vs. unset
- Date: Sat, 5 Dec 2020 14:17:16 -0800
- Archived-at: <https://zsh.org/workers/47728>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAH%2Bw%3D7axE%2BRgBGtT_mu_Fmcjv4kE4Niqsy_99EztxX%2BXJSjdqg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x6SIEdl2TEmBubZw5YJwHeT6nYIrvDsFN6fFw983i0w=; b=U+j9z3y4J2nseReskDaDCcbXnc5jWTipBluPI+rZk38hmC08EqGgmNQKhzIMnmPmEx mb1hgJ0YKEx9tFYozQp5tAyNskXjiYPMGhjYri4tnB5y8kerOuyR4KBZZHoC27MbEp6Q PgISppEmHZpY/lG/824K9f1kRpriMa4eav8XzRyCB810WkhCtfypMRbElmcMek5Xgi/Y GCdldpZ8qvnw5xJ97NzXph90PAfUz5LHFL+6p3UYBjefYT3QeaMYmqi/vantpNEd+mbu bVxE4SC79dhgdzqdU/Qg+whqL5wtCBwOdnWQ1+GAbS7Qz6YXofpaeaZZmOLl/5m2Rfhx UOQA==
- In-reply-to: <CAH+w=7aQeZjFAaJZ+E5DWQG45jvh-VvkT=PAMarpugaL+KcJ4w@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAH+w=7Zh8URUiLF2n1x-ZrvKO+=JC8wf+n692sRsFTRbkJrzXw@mail.gmail.com> <CAMP44s2gZnM_JAi78gJwB+uX75Sdx0MQPkW7SZ6tUk85xEjvQg@mail.gmail.com> <CAH+w=7a0es6W_Si9YbQzszzYBSuubmocot_8goywaL_Owb=pjw@mail.gmail.com> <CAMP44s3y2zqbG=8Zxqmn5RcwHC-CF2VaiwADhUbj2AokRKndkA@mail.gmail.com> <CAH+w=7aQeZjFAaJZ+E5DWQG45jvh-VvkT=PAMarpugaL+KcJ4w@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
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