From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27498 invoked by alias); 27 Sep 2011 07:10:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16437 Received: (qmail 3472 invoked from network); 27 Sep 2011 07:10:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at micahelliott.com does not designate permitted sender hosts) MIME-Version: 1.0 From: Micah Elliott Date: Tue, 27 Sep 2011 00:09:41 -0700 Message-ID: Subject: printf shortcomings To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C2=A0 |=C2=A0 email:mde@MicahElliott.com=C2=A0 |=C2= =A0 http://membean.com Remember your words on exam day with Membean!