bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf(1) does not support argument swapping


From: Eric Blake
Subject: Re: printf(1) does not support argument swapping
Date: Fri, 26 Dec 2008 10:53:25 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Antonio Bonifati on 12/26/2008 8:37 AM:
> Hi,
> I'm using coreutils 6.12 and bash 3.2.048. I notice command line versions
> of printf(1), both external (/usr/bin/printf) and internal (bash command)
> do not support argument swapping as printf(3) does.

Thanks for the report.  POSIX does not require printf(1) to support
argument swapping:
http://www.opengroup.org/onlinepubs/9699919799/utilities/printf.html

So this is technically not a bug.  However, if you would like to submit a
patch that adds this as an extension, we will probably consider it for
coreutils' printf.  If you want the bash builtin to also make this
improvement, then bring that to the attention of the bug-bash list.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklVGhUACgkQ84KuGfSFAYBOKwCeLwwwnPqSpFYBD2f1wXDKXaW5
WZAAnA0vdEmlZlJuoLX4qo+5D3T/Hzkl
=iXq7
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]