Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Printf builtin missing v flag support
- X-seq: zsh-workers 37478
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Printf builtin missing v flag support
- Date: Fri, 1 Jan 2016 13:52:24 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=1sIpcbLXcp9P/MwAz1Fvsc5yzF47e1+9EXxAijNKZWA=; b=Z/igULXux0UlBcVFbtBLI4fJjKqRfvSxO68z8Tq5U2EIIV8AiSs8FIMPUbc+QeSC6D nRv2T0QpukiC8ImH2kLzvo3gO0L+5LKlCk+ZYpNNAAqz7RmYKMhTIcrgqm5GX3bK5hOf +cpNLMDMZTXRV+sspp/lyV4k2cbs1nfGKkApfdq2bVBiZgounCBrQQXXOmnEoS24m7J2 6v+hL6LZKtS+EudBM8peZjaMFaLEBw3dVueLpyhpmXP+63ir01HqoupcqfSpp6Uh4tjq Vot/DxXfJZYQOdj7M+q/pGSMCi4VNDq5TLhwKBrgSB0T6OwuNeP4V1Nqp25db7uQ1UyO EGkQ==
- In-reply-to: <CAKc7PVCXaicToQHdgaqnOmoqHjqQLxUXQSUrBx=fjs9JH2USKQ@mail.gmail.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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author