zsh-workers
 help / color / mirror / code / Atom feed
* [RFE] %a support in printf builtin (when available)
@ 2006-04-07 15:04 Vincent Lefevre
  2008-01-24 11:58 ` Vincent Lefevre
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 2006-04-07 15:04 UTC (permalink / raw)
  To: zsh-workers

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.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFE] %a support in printf builtin (when available)
  2006-04-07 15:04 [RFE] %a support in printf builtin (when available) Vincent Lefevre
@ 2008-01-24 11:58 ` Vincent Lefevre
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Lefevre @ 2008-01-24 11:58 UTC (permalink / raw)
  To: zsh-workers

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@vinc17.org> - 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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-24 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-07 15:04 [RFE] %a support in printf builtin (when available) Vincent Lefevre
2008-01-24 11:58 ` Vincent Lefevre

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).