Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Example / partial fix for printf with math expressions



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