Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFE] %a support in printf builtin (when available)
- X-seq: zsh-workers 24458
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [RFE] %a support in printf builtin (when available)
- Date: Thu, 24 Jan 2008 12:58:03 +0100
- In-reply-to: <20060407150458.GC1327@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060407150458.GC1327@xxxxxxxxxxxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author