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

According to James Youngman on 7/21/2007 8:25 AM:
[thread starts at
http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00060.html]

>>> [EMAIL PROTECTED] "%02i" 09
>>> -bash: printf: 09: invalid number
>>
>> printf "%02i" 011
>>
>> gets you 09.
> 
> 
> Obviously, "Invalid octal number" would have been a more helpful error
> message.

Not as obvious, this was reported to the wrong list.  Coreutils' printf
does this:

$ /bin/printf %02i 09
/bin/printf: 09: value not completely converted

It is bash's printf which could be improved, so I'm forwarding this to the
bug-bash list.

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

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGohl984KuGfSFAYARAujQAJ9kBTfP0R9HF21dn5FpH+X76cmZtACg0ntu
CektDEFvNbq4C4fw1IZAX5A=
=lXtC
-----END PGP SIGNATURE-----


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to