Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
printf shortcomings
- X-seq: zsh-users 16437
- From: Micah Elliott <mde@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: printf shortcomings
- Date: Tue, 27 Sep 2011 00:09:41 -0700
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I was looking at `printf(3)` and also this lovely reference
(http://www.pixelbeat.org/programming/gcc/format_specs.html) and
noticed that the "locale thousands grouping" flag (') doesn't appear
to be supported by Zsh's builtin printf. I don't have an important
need for this today, but noticing that it could be pretty useful.
% printf "%'i" 3210384
print: %': invalid directive
% /usr/bin/printf "%'i" 3210384
3,210,384%
Is the prescription to just fall back to the system printf when
certain complex formats are needed? Or are there plans to implement
(most) everything from the system version? I see LC_NUMERIC
(zshparam(1)) hinting at the "thousands separator" but I'm not seeing
where that gets used.
--
twitter:@MicahElliott | email:mde@xxxxxxxxxxxxxxxx | http://membean.com
Remember your words on exam day with Membean!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author