Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Printf builtin missing v flag support
- X-seq: zsh-workers 37465
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Printf builtin missing v flag support
- Date: Thu, 31 Dec 2015 08:55:41 -0500
- In-reply-to: <etPan.5684d62f.51cb8f6f.31ec@Ganymede>
- 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: <etPan.5684d3d1.74f2df6b.31ec@Ganymede> <etPan.5684d62f.51cb8f6f.31ec@Ganymede>
On 12/31/2015 02:16 AM, Starms, William Albert (MU-Student) wrote:
> Is this just a feature that nobody noticed/cared about, or was there a reason for its omission? I couldn’t find anything on the subject, but I may just be bad at googling. I know printf can just be run in a subshell and captured, but forking for this seems like overkill, I say without any knowledge of the zsh backend.
You can avoid the overhead of a subshell with something like
% print -zf 'hello %s\n' foo;read -zr var; typeset -p var
typeset var=foo
Messages sorted by:
Reverse Date,
Date,
Thread,
Author