From jkh@time.cdrom.com  Sat May  6 18:47:22 1995
Received: from time.cdrom.com (time.cdrom.com [192.216.223.46])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id SAA27585
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 6 May 1995 18:47:21 -0700
Received: (from jkh@localhost) by time.cdrom.com (8.6.11/8.6.9) id SAA00980; Sat, 6 May 1995 18:47:08 -0700
Message-Id: <199505070147.SAA00980@time.cdrom.com>
Date: Sat, 6 May 1995 18:47:08 -0700
From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
Reply-To: jkh@time.cdrom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: *s field width specification doesn't seem to work for printf
X-Send-Pr-Version: 3.2

>Number:         386
>Category:       bin
>Synopsis:       *s field width specification for printf seems to loop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May  6 18:50:00 1995
>Closed-Date:    Sun May 7 09:04:22 MET DST 1995
>Last-Modified:
>Originator:     Jordan K. Hubbard
>Release:        FreeBSD BUILT-19950425 i386
>Organization:
Walnut Creek CDROM
>Environment:

	See Release

>Description:

	Try this:  printf "%8*s" foobarblatt

	It will loop forever.  The man page would tend to indicate that it,
	or perhaps rather %*8s, should print the arg truncated to 8 characters.
	Either way, it shouldn't loop.

>How-To-Repeat:

	See above.

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun May 7 09:04:22 MET DST 1995 
State-Changed-Why:  
Mostly pilot error; the syntax checking for the argument string has been 
made more strict with version 1.2 of printf.c, so "%*8s" is no longer 
considered to be a valid format string. 
>Unformatted:



