Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Example / partial fix for printf with math expressions
- X-seq: zsh-workers 52592
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Example / partial fix for printf with math expressions
- Date: Sat, 24 Feb 2024 15:10:37 +0000
- Archived-at: <https://zsh.org/workers/52592>
- In-reply-to: <20240224144041.7huny3lmihsrokdm@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- References: <CAH+w=7Z+vjX7sAgajLsQJw2KkZtyvaZvvJ+-=-7rMFH7p9+j7g@mail.gmail.com> <20240224144041.7huny3lmihsrokdm@chazelas.org>
2024-02-24 14:40:41 +0000, Stephane Chazelas:
[...]
> The math parser seems to work OK with NULs at least in:
>
> $ typeset -A a
> $ typeset -p a
> typeset -A a=( [$'\C-@']=1 )
[...]
Sorry, I messed up my copy-paste again. Should have been:
$ typeset -A a
$ let $'a[\0]++'
$ typeset -p a
typeset -A a=( [$'\C-@']=1 )
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author