Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Numbers with leading _
- X-seq: zsh-workers 51016
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Numbers with leading _
- Date: Mon, 21 Nov 2022 16:27:05 +0000 (GMT)
- Archived-at: <https://zsh.org/workers/51016>
- Importance: Normal
- In-reply-to: <CAHYJk3Q4f+dpwv6GDP=ZXTcjwnBc7GS+vS_G6M4Fso55zv4J6w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHYJk3Q4f+dpwv6GDP=ZXTcjwnBc7GS+vS_G6M4Fso55zv4J6w@mail.gmail.com>
> On 21/11/2022 16:22 Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> I was playing with extending hasbraces+xpandbraces to allow _ in
> numbers via zstrtoul_underscore, and noticed that in normal math
> context, this happens:
> % echo $(( _1000 ))
> 0
> % a=(1 2 3); echo $a[_1]
>
That's a reference to the variable $_1 (which obviously isn't set).
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author