svn commit: r212374 - head/usr.bin/printf
David E. O'Brien
obrien at FreeBSD.org
Thu Sep 9 19:27:40 UTC 2010
Author: obrien
Date: Thu Sep 9 19:27:40 2010
New Revision: 212374
URL: http://svn.freebsd.org/changeset/base/212374
Log:
Note bug in trying to printf(1) things like: '-%s\n' "foo"
Modified:
head/usr.bin/printf/printf.1
Modified: head/usr.bin/printf/printf.1
==============================================================================
--- head/usr.bin/printf/printf.1 Thu Sep 9 18:51:50 2010 (r212373)
+++ head/usr.bin/printf/printf.1 Thu Sep 9 19:27:40 2010 (r212374)
@@ -355,3 +355,10 @@ Multibyte characters are not recognized
a problem if
.Ql %
can appear inside a multibyte character).
+.Pp
+Trying to print a dash ("-") as the first character causes
+.Nm
+to interpet the dash as a program argument.
+.Nm --
+must be used before
+.Ar format .
More information about the svn-src-head
mailing list