Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2010 19:27:40 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212374 - head/usr.bin/printf
Message-ID:  <201009091927.o89JReXm022426@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 .



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009091927.o89JReXm022426>