From: Micah Elliott <mde@micahelliott.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: printf shortcomings
Date: Tue, 27 Sep 2011 00:09:41 -0700 [thread overview]
Message-ID: <CAELbujqnxAxzcqAvgaqDWd9yVeM+r0M4ir+EJmvHPu1qLgkoew@mail.gmail.com> (raw)
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@MicahElliott.com | http://membean.com
Remember your words on exam day with Membean!
next reply other threads:[~2011-09-27 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 7:09 Micah Elliott [this message]
2011-09-27 7:51 ` Oliver Kiddle
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=CAELbujqnxAxzcqAvgaqDWd9yVeM+r0M4ir+EJmvHPu1qLgkoew@mail.gmail.com \
--to=mde@micahelliott.com \
--cc=zsh-users@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).