Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFE] %a support in printf builtin (when available)



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