From: Stephane Chazelas <stephane@chazelas.org>
To: Bart Schaefer <schaefer@brasslantern.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Example / partial fix for printf with math expressions
Date: Sat, 24 Feb 2024 15:10:37 +0000 [thread overview]
Message-ID: <20240224151037.cjcfpjworfohbhne@chazelas.org> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2024-02-24 15:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 23:23 Bart Schaefer
2024-02-24 14:40 ` Stephane Chazelas
2024-02-24 15:10 ` Stephane Chazelas [this message]
2024-02-24 21:51 ` Bart Schaefer
2024-02-25 6:54 ` Stephane Chazelas
2024-02-26 0:04 ` Bart Schaefer
2024-02-26 17:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240224151037.cjcfpjworfohbhne@chazelas.org \
--to=stephane@chazelas.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).