zsh-workers
 help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: Re: Printf builtin missing v flag support
Date: Thu, 31 Dec 2015 09:05:32 -0500	[thread overview]
Message-ID: <5685362C.2070605@gmx.com> (raw)
In-Reply-To: <568533DD.7030403@gmx.com>

On 12/31/2015 08:55 AM, Eric Cook wrote:
> 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
> 
Copied and pasted from two different examples, but the code does indeed yield `hello foo', not just `foo'.


  reply	other threads:[~2015-12-31 14:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <etPan.5684d3d1.74f2df6b.31ec@Ganymede>
2015-12-31  7:16 ` Starms, William Albert (MU-Student)
2015-12-31 10:44   ` Peter Stephenson
2015-12-31 18:48     ` Bart Schaefer
2016-01-01 21:26       ` Sebastian Gniazdowski
2016-01-01 21:35         ` Sebastian Gniazdowski
2016-01-01 21:52         ` Bart Schaefer
2016-01-01 22:12           ` Sebastian Gniazdowski
2016-01-02  4:17             ` Bart Schaefer
2016-01-02  7:17               ` Sebastian Gniazdowski
2016-01-02 21:42                 ` Bart Schaefer
2016-01-02 21:54                   ` Bart Schaefer
2016-01-04  5:50                     ` Jun T.
2016-01-04 19:22                       ` Bart Schaefer
2016-01-01 21:57       ` Eric Cook
2016-01-01 22:14         ` Eric Cook
2015-12-31 13:55   ` Eric Cook
2015-12-31 14:05     ` Eric Cook [this message]
2016-01-01 18:45   ` Stephane Chazelas
2016-01-01 21:17     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5685362C.2070605@gmx.com \
    --to=llua@gmx.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).