From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2387 invoked from network); 24 Jan 2008 12:03:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Jan 2008 12:03:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 42643 invoked from network); 24 Jan 2008 12:03:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jan 2008 12:03:16 -0000 Received: (qmail 22077 invoked by alias); 24 Jan 2008 11:59:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24458 Received: (qmail 21379 invoked from network); 24 Jan 2008 11:58:10 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 24 Jan 2008 11:58:10 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id A3CF18059009 for ; Thu, 24 Jan 2008 12:58:05 +0100 (CET) Received: from vin.lip.ens-lyon.fr (vin.lip.ens-lyon.fr [140.77.13.170]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Thu, 24 Jan 2008 12:58:05 +0100 (CET) Received: from vlefevre by vin.lip.ens-lyon.fr with local (Exim 4.69) (envelope-from ) id 1JI0iZ-0003pW-Uk; Thu, 24 Jan 2008 12:58:03 +0100 Date: Thu, 24 Jan 2008 12:58:03 +0100 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: Re: [RFE] %a support in printf builtin (when available) Message-ID: <20080124115803.GA13714@vin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@sunsite.dk References: <20060407150458.GC1327@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060407150458.GC1327@prunille.vinc17.org> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.17-vl-r19795 (2008-01-17) X-Virus-Scanned: ClamAV using ClamSMTP On 2006-04-07 17:04:58 +0200, Vincent Lefevre wrote: > Under Debian/unstable: > > dixsept% where printf > printf: shell built-in command > /usr/bin/printf > dixsept% printf "%a\n" 1.1 > printf: %a: invalid directive > dixsept% /usr/bin/printf "%a\n" 1.1 > 0x8.ccccccccccccccdp-3 > dixsept% > > Note: the %a format appeared in C99. Also the %a format in now in the POSIX revision draft for the printf shell utility. Moreover supporting the ' flag (as defined in the printf function), like the printf command from the coreutils, would also be useful. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)