Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Printf builtin missing v flag support
- X-seq: zsh-workers 37481
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Printf builtin missing v flag support
- Date: Fri, 1 Jan 2016 23:12:32 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=LhGYbjUP7RxrVfFGMi/SzYstFSTQveZENNZ45IL69Js=; b=gTVGwk44R8Wk0z7D6/lJK/M/pbxcfNMby8Bv7isrXSZO/MopM9W++PNv4t/pydlIxT XQl/TYYiTD/ljtoJQD7nle9putKGhFcTt6bAiBAjLUScIpz5LW1mGqF2s/30gPXeSA9D lEphYOEzTU3PabLZRDJ8RHjP8K6BZdgEYqu/bpK0V3Wxh0mYHK2M23XiLGfbQR/Z75sJ wfBJ0CBvCTWioaGaFXURJxAR/hedN74RbQzYBUuZS7bdl4Wiuut88HGDksbZT4aPagqL TmXVrpK+CPtDZ//OyHgSz8HBF8+n1qbDc44jIgMHLfTL4l3bRfUEij2thAm21tv5+U3N XWOw==
- In-reply-to: <160101135224.ZM10746@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <068ca8f5-315b-444c-b281-5f183e1daa8c@email.android.com> <151231104858.ZM24513@torch.brasslantern.com> <CAKc7PVCXaicToQHdgaqnOmoqHjqQLxUXQSUrBx=fjs9JH2USKQ@mail.gmail.com> <160101135224.ZM10746@torch.brasslantern.com>
On 1 January 2016 at 22:52, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author