Subject: Re: Printf builtin missing v flag support
From: Sebastian Gniazdowski <[email-masked]>
To: Zsh hackers list <[email-masked]>
Date: Fri, 1 Jan 2016 23:12:32 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On 1 January 2016 at 22:52, Bart Schaefer <[email-masked]> wrote:
> On Jan 1, 10:26pm, Sebastian Gniazdowski wrote:
> }
> } Will this work for -x and -X?
>
> No, it doesn't.  It's mainly for "printf -v ..."; I only enabled it
> for plain "print" as an afterthought.  "print -v" joins the literal
> arguments into a string and stores that in the variable.
>
> To make it work with -x, -X, -C, etc. would require moving the memstream
> code to the top of the function, plus some related fiddling around later.

Could you implement that? The move of memstream code seems like a
cleanup, print would have full control of whether do memstream or not.

Best regards,
Sebastian Gniazdowski