From 4b2f91532164095cf83202b30824896be0adf41a Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 9 Sep 2010 19:27:40 +0000 Subject: [PATCH] Note bug in trying to printf(1) things like: '-%s\n' "foo" --- usr.bin/printf/printf.1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1 index f0fc00b63ca8..6caea65c6df2 100644 --- a/usr.bin/printf/printf.1 +++ b/usr.bin/printf/printf.1 @@ -355,3 +355,10 @@ Multibyte characters are not recognized in format strings (this is only 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 .