From owner-freebsd-bugs Sat May 6 18:50:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA27677 for bugs-outgoing; Sat, 6 May 1995 18:50:02 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA27670 ; Sat, 6 May 1995 18:50:01 -0700 Date: Sat, 6 May 1995 18:50:01 -0700 Message-Id: <199505070150.SAA27670@freefall.cdrom.com> From: "Jordan K. Hubbard" Reply-To: "Jordan K. Hubbard" To: freebsd-bugs Subject: bin/386: *s field width specification doesn't seem to work for printf In-Reply-To: Your message of Sat, 6 May 1995 18:47:08 -0700 <199505070147.SAA00980@time.cdrom.com> Sender: bugs-owner@FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 6 18:50:00 1995 >Originator: Jordan K. Hubbard >Organization: Walnut Creek CDROM >Release: FreeBSD BUILT-19950425 i386 >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: >Audit-Trail: >Unformatted: