Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Metafication in error messages (Was: [PATCH] unmetafy Re: $var not expanded in ${x?$var})
Incidentally ...
On Wed, Feb 21, 2024 at 11:55 PM Stephane Chazelas
<stephane@xxxxxxxxxxxx> wrote:
>
> $ printf '%d\n' $'1+|a\0b'
> zsh: bad math expression: operand expected at `|a'
That doesn't have anything to do with error message presentation, the
integer parser itself stops at the nul byte before even checking the
error. GIGO.
And the differences in these two ...
> $ printf '%d\n' '1+|ÃÃÃÃÃÃ'
> zsh: bad math expression: operand expected at `|\M-C\M-c\M-c\M-c\M-c\M-c\M-^C...'
> $ ((1+|ÃÃÃÃÃÃ))
> zsh: bad math expression: operand expected at `|ÃÃÃÃ\M-C...'
... are down to the parsing of quoted arguments vs. ((...)), with some
fudge because of the way the use of ellipsis is calculated. This
would have to be sorted out in bin_print() or something.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author