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

Re: [PATCH 2/3] jp: Use `(nil)` for empty identifier strings



On Sun, Jan 14, 2018 at 03:43:08PM +0000, Daniel Shahaf wrote:
>
> How about inventing an %ls expando that emits the argument quoted, so
> zerr("%ls", foo) would print ${(qq)foo} or ${(q-)foo}.  That seems easier
> than updating all callsites (not just these three).
> 
> (%ls/%s by analogy with %ld/%d.)

If only it were so easy :( All that `zerr()` does is pass the
`va_list` to `zerrmsg()` and i didn't want to touch too many
things.

I like the idea though, actually. So if i messed around with
implementing things in `zerrmsg()` would the "" or '' format
be better than bothering with (nil) at all?

-- 
Joey Pabalinas

Attachment: signature.asc
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author