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})
On Sat, Feb 24, 2024 at 6:17 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> The actual tradeoff to make %l do the raw output is:
> + fix the width calculation in math.c, then use %s *
> + add one call to metafy() in parse.c, to use %s instead of %l **
> + add one call to unmetafy() in subst.c, to use %l instead of %s
> - remove metalen(), zhalloc(), memcpy(), and nicezputs() from utils.c
> + add one call to fwrite() in place of the above
Stephane, if you really still think it preferable to add %S (thus
moving the unmetafy() from subst.c to utils.c) then I think we should
just do away with %l entirely. Either way we're ending up with a
branch in zerrmsg() that's used for exactly one special case.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author