From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 24 17:30:13 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2F2E106564A for ; Sun, 24 Jul 2011 17:30:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D2F5F8FC13 for ; Sun, 24 Jul 2011 17:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6OHUDIq017334 for ; Sun, 24 Jul 2011 17:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6OHUDYB017331; Sun, 24 Jul 2011 17:30:13 GMT (envelope-from gnats) Date: Sun, 24 Jul 2011 17:30:13 GMT Message-Id: <201107241730.p6OHUDYB017331@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: bin/158846: commit references a PR X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2011 17:30:14 -0000 The following reply was made to PR bin/158846; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/158846: commit references a PR Date: Sun, 24 Jul 2011 17:24:35 +0000 (UTC) Author: jilles Date: Sun Jul 24 17:24:26 2011 New Revision: 224289 URL: http://svn.freebsd.org/changeset/base/224289 Log: MFC r212374,r221026: printf(1): Document need for "--" before format strings starting with "-". Also move the remark that hexadecimal escapes are not provided to the new CAVEATS section. PR: 158846 Modified: stable/8/usr.bin/printf/printf.1 Directory Properties: stable/8/usr.bin/printf/ (props changed) Modified: stable/8/usr.bin/printf/printf.1 ============================================================================== --- stable/8/usr.bin/printf/printf.1 Sun Jul 24 11:56:39 2011 (r224288) +++ stable/8/usr.bin/printf/printf.1 Sun Jul 24 17:24:26 2011 (r224289) @@ -332,6 +332,16 @@ command appeared in It is modeled after the standard library function, .Xr printf 3 . +.Sh CAVEATS +.Tn ANSI +hexadecimal character constants were deliberately not provided. +.Pp +Trying to print a dash ("-") as the first character causes +.Nm +to interpret the dash as a program argument. +.Nm -- +must be used before +.Ar format . .Sh BUGS Since the floating point numbers are translated from .Tn ASCII @@ -343,9 +353,6 @@ The .Cm L modifier may produce additional precision, depending on the hardware platform.) .Pp -.Tn ANSI -hexadecimal character constants were deliberately not provided. -.Pp The escape sequence \e000 is the string terminator. When present in the argument for the .Cm b _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"