Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] declarednull: rename DECLARED to NULL
- X-seq: zsh-workers 48469
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] declarednull: rename DECLARED to NULL
- Date: Sat, 10 Apr 2021 11:56:37 -0700
- Archived-at: <https://zsh.org/workers/48469>
- In-reply-to: <83994-1616978678.232193@jPMH.zQZs.0I47>
- List-id: <zsh-workers.zsh.org>
- References: <20201228221342.136199-1-felipe.contreras@gmail.com> <CAH+w=7aHddgDB9jbKoL2pceNwPM48pF6+V3oiHzd8versYVW7w@mail.gmail.com> <CAMP44s2v4dJJe8XhGfzzvsANMiT25COreKEhuqF3VgEfqSZ4Fg@mail.gmail.com> <CAH+w=7ZL0KGcd8b4mmRhMSPuX-bEgMZi5XG7G37vLo1m87GUAg@mail.gmail.com> <20210104061718.GB14783@tarpaulin.shahaf.local2> <CAH+w=7ZX8ddgLH3DdsrCg6pgxY8KbRo1nqF5qLxZ2HL0JtcWNw@mail.gmail.com> <4e9d7283-94fa-4862-ab04-8c3294f3876c@www.fastmail.com> <CAH+w=7a5xzztvJ9hRB-2-LyzyZFx74Pfy5z8cJu01=hOh_AHQw@mail.gmail.com> <c4fe44f4-3b44-4ce9-8f8b-3605cf043b63@www.fastmail.com> <CAH+w=7ZQhoS8dfN+y_O712wXYCW1kWN_TDT14AqZ07AubM2++g@mail.gmail.com> <83994-1616978678.232193@jPMH.zQZs.0I47>
On Sun, Mar 28, 2021 at 5:44 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> Bart Schaefer wrote:
> > IMO the primary remaining question is
> > whether it's acceptable to make the user-visible behavior dependent on
> > the POSIX_BUILTINS option.
>
> It seems fairly self-contained and could have it's own option. typeset
> isn't a builtin. posix compatibility options aren't really improvements
> but someone might prefer this behaviour.
(I'm reading that as "typeset isn't a POSIX builtin"). There has at
least been discussion about standardizing "local" on austin-group, and
given that "local" is an alias for typeset, this (or related) behavior
might become a POSIX compatibility thing in the future.
I'm also somewhat concerned that choosing a descriptive name for a new
option is going to spawn another argument. TYPESET_DOES_NOT_SET ?
As mentioned long ago, it could also be an emulation-mode thing,
although that makes it a lot more difficult to access at a scripting
level.
> Was there anything else outstanding like (t) output perhaps?
I believe I have dealt properly with ${(t)var}. I'll add something to
the doc about ${emptystr[(i)]}, because that's a weird case even
without this patch.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author