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

According to Rich Felker on 11/26/2007 8:43 PM:
> $ printf ---%s---\\n test
> bash: printf: --: invalid option

That's not a bug.  If you insist on printing with a format string that
starts with -, POSIX requires that you use -- to end arguments, as in:

$ printf -- ---%s---\\n test
- ---test---

If your non-builtin system printf behaves differently, that is a bug in
your system printf.

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

iD8DBQFHS58d84KuGfSFAYARAl6uAKCiyJwxJxwt3pEoIBoOtzAgMAPfdwCdGLk5
5seJo0RZaa7EWH8lcWbvaMU=
=5gil
-----END PGP SIGNATURE-----


Reply via email to