Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Capturing STDOUT without subshells or file I/O
- X-seq: zsh-users 23605
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Capturing STDOUT without subshells or file I/O
- Date: Mon, 3 Sep 2018 08:43:53 -1000
- Cc: Ben Klein <robobenklein@xxxxxxxxx>, zsh-users@xxxxxxx, Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/el5h7hkwU3EZ8fapt01gVkCnv87AX1h6dYROxrfkAM=; b=pjjk6KWTsPoDW2x7/1JGdOR5Hk0ZDVl6yxx+3Q9fdirt3XpjYHu3Ts79ArqYdUUk3+ 7IMxmmaADmCSlt0mifRNIRgqLmCYfPNpG2N0P7miScZ1cYwV2jEKfewDUmlJL4htenKA gaWhsOKXtqH1jUwq0NEsuiiY5rqdnLc+cqztGXUqOQVFcEUSkgylBHOVxApHFrr7BOmH oof23mZL5a8zvQj1Zmy0fz3hy2TCA1Zdzc3AOWm93YpGRjp2/Cs/2dNLB/FxiJE1s/WC 8Ov8qNvMkewR2fthQyKSfJlFGIGv6UrA1Y3XQ/CWyGfbJq6p3fYI6cCbAIKjTeNHASPh 0jVg==
- In-reply-to: <20180903140214.76kbzgpfru6atc5u@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <04a12c6a-c926-b088-f386-8a2bdb81dad2@gmail.com> <20180903140214.76kbzgpfru6atc5u@tarpaulin.shahaf.local2>
On Mon, Sep 03, 2018 at 02:02:14PM +0000, Daniel Shahaf wrote:
> Just pass -v to the builtin printf, e.g.,
>
> % printf -v foo 'a%03d' 42
> % typeset -p foo
> a042
> %
Much nicer, wow. Looks like I'll be revising quite a few of my scripts
today.
--
Cheers,
Joey Pabalinas
Attachment:
signature.asc
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author