From nobody  Thu Sep  4 19:27:52 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id TAA10164;
          Thu, 4 Sep 1997 19:27:52 -0700 (PDT)
Message-Id: <199709050227.TAA10164@hub.freebsd.org>
Date: Thu, 4 Sep 1997 19:27:52 -0700 (PDT)
From: karpen@ocean.campus.luth.se
To: freebsd-gnats-submit@freebsd.org
Subject: manpage for /usr/bin/printf is not complete
X-Send-Pr-Version: www-1.0

>Number:         4472
>Category:       docs
>Synopsis:       manpage for /usr/bin/printf is not complete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  4 19:30:01 PDT 1997
>Closed-Date:    Wed Jun 3 04:05:53 PDT 1998
>Last-Modified:  Wed Jun  3 04:07:06 PDT 1998
>Originator:     Mikael Karpberg
>Release:        2.2-970621-RELENG
>Organization:
-
>Environment:
CVS indicates it's not fixed in any version...
>Description:
The manpage to /usr/bin/printf doesn't mention that you can set an
asterisk as the field width or precision. Putting an asterisk there
works however. It's even mentioned in a comment in the main loop of
printf(1):

....
* Basic algorithm is to scan the format string for conversion
* specifications -- once one is found, find out if the field
* width or precision is a '*'; if it is, gather up value.
....

>How-To-Repeat:
man 1 printf
>Fix:
Copy some text from printf(3)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkoshy 
State-Changed-When: Wed Jun 3 04:05:53 PDT 1998 
State-Changed-Why:  
Seems to be fixed in 2.2-STABLE and 3.0-CURRENT. 
`` A field width or precision may be `*' instead of a digit string'' 
(from the man page for printf(1)). 
>Unformatted:
