Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: ${(l[-3][0])var} to do left padding *without truncation*
On Sat, Aug 3, 2024 at 1:31 PM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> num = get_intarg(&s, &dellen);
> if (num < 0)
> goto flagerr;
>
> So it looks like it was intended at some point for it to be an error for the
> number to be negative
A closer examination of get_intarg() indicates that a negative return
means a parse error, not that the argument examined is allowed to be
negative. E.g.:
char *t = get_strarg(*s, &arglen);
...
if (!*t)
return -1;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author