Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: The emulation rabbit-hole RE typeset/unset
- X-seq: zsh-workers 47706
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: The emulation rabbit-hole RE typeset/unset
- Date: Tue, 1 Dec 2020 02:49:48 -0600
- Archived-at: <https://zsh.org/workers/47706>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/CAMP44s3P7Jc3oK9q%3D9M5kS%3DvK7Bw-vsdM%3DoDdQ99rU0Qo25yzA%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-wr1-f53.google.com) smtp.remote-ip=209.85.221.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4MbF+vZtDZtj4fj3AApI2aMjucQE5O+ZDzqouKbSaOQ=; b=CNtYvS0qVjB/YJfH7RKuZcT05b3rzGbtzFV5Mpn5uXJr74X/EZBJgP86erpYdefFGM EZV1khmKa+jusUK/bZ+Ey5wopDZ1k4OGVi6u/7OnqRZq3nLJLwaxIWHa1hZXAMsat8vq ICnjuTpgdUBcdXZ6jhC/bddDQiWHhdVFOO0qAcawK8RSmluJBToilgQNb57tIgECBJwr rmtcRnfoQC/dJv/1Q2CiAuXVyFhphgpqIyBadO99ARMz6KEFzv6GyCTaXCfIBaAt2V12 bNV+K6N3S8DieIA+O39+kugQiKpWSHd86c5g1zr4hbuPpM2QCvmRHUCOOGifjyHdMI2V ypWQ==
- In-reply-to: <CAH+w=7a0midnHPULDn7tOwSS_fA0cL_zNdvz12pUS47Rgwcc0w@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=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <CAH+w=7bs9E7whJLugMLOXG05R-2S8Hjt+OOKK_KN+SMxv-Vvaw@mail.gmail.com> <CAMP44s2Ge-pOn1-gEXkq=oJX7ohL-b_20s9mJZAo1LB=ow+Duw@mail.gmail.com> <CAH+w=7bHCrpwbkZBOgwjwF7M9uo+1_ZEa53hxSwE2fuuBuQfyw@mail.gmail.com> <CAMP44s0WSt_J7TjyPEKvH9TxzWBvTVFTB-pK26G+9SacYeQrAw@mail.gmail.com> <CAH+w=7YtBvrpuXUM=MuHVRuBjf8uiRozKLJsHvYXJr9Cx=J-rQ@mail.gmail.com> <CAMP44s3s0dXtirZhi5e_Tir+3KKn2Kw4hseEj0uH12a7HB5Y=Q@mail.gmail.com> <CAH+w=7ZVthOMB=jJ+KkU1WipL2mbCgD69HfUtxGnu6Mbx1rOog@mail.gmail.com> <CAMP44s2ZJg75KEh+vL+EUOgJUF+oB6TLn5-1h55ktcKR67ZeJg@mail.gmail.com> <CAH+w=7arBoRxmFRH7wL_Sh-0tRe1Xyo_GKze+jkSdvYep7NMWg@mail.gmail.com> <CAMP44s1i6uC72LhqGmt_hg-YUoFtJTKcC6o2qTGLHZJ3tB56CA@mail.gmail.com> <CAH+w=7ZxhRr1TYFe_SuKaT5TKsceh7RDTeQ-hfcZF08ctWeTvg@mail.gmail.com> <CAMP44s1Vb7BLHMaJTVwA=y1X3+UuocA3PGCuGVJRDMHAaG7zwg@mail.gmail.com> <CAH+w=7aQ_pNqHtgEqV6s02Z+V6Aih2g8hebMbjxHgdYJVKXYFQ@mail.gmail.com> <CAMP44s1b5N2_PfmQEgvXhdGzcXgLOK6i1CpABfo-XK=RGf-hRw@mail.gmail.com> <CAH+w=7a0midnHPULDn7tOwSS_fA0cL_zNdvz12pUS47Rgwcc0w@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Sat, Nov 28, 2020 at 10:56 AM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Nov 28, 2020 at 3:36 AM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > An integer is not a "simple scalar", and seems to be useful unset.
> >
> > Or am I missing something?
>
> Two things. Possibly three.
>
> One, 'the only useful "declared but not set" variable is a simple
> scalar' was a statement on the ambiguity of the austin-group proposal
> that you excerpted, which explicitly made "declared but not set"
> equivalent to "unset".
Yes, but this is a statement of fact. It either is true or it isn't.
And to me it looks like it isn't.
> Two, that neither bash nor ksh actually does make those two things
> equivalent. Variables in bash and ksh can either have both properties
> and values, or only properties, or neither. Variables in zsh
> currently have only the two states of both or neither, because the
> latter is the definition of being unset.
>
> This is what we've been saying all along -- zsh currently has no
> provision for representing "only properties", and consequently the
> only way to get any of the behavior of the properties settable by
> typeset options is to provide a default value. The only thing zsh can
> currently represent independent of some value is function scope.
I'm not talking about what is currently the case in zsh. I'm talking
about what should ideally be the case. For bash, for ksh, for POSIX,
and consequently for zsh.
> Three, maybe, is that math expression context has a special definition
> of the meaning of an undeclared name, which is not the same as the
> definition in the rest of the shell. It's not a parameter expansion
> in the normal sense.
No, but it's still useful.
Cheers.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author