Subject: bin/17635: bugs in printf command
To: None <>
From: None <>
List: netbsd-bugs
Date: 07/18/2002 14:50:39
>Number:         17635
>Category:       bin
>Synopsis:       bugs in printf command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 18 06:50:00 PDT 2002
>Originator:     David Laight
>Release:        NetBSD 1.6D
System: NetBSD snowdrop 1.6D NetBSD 1.6D (GENERIC) #31: Wed Jul 17 12:21:51 BST 2002
dsl@snowdrop:/oldroot/usr/bsd-current/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
	There are many bugs in printf including failure to support:
		printf '%2b\n"	string
		printf '%*d\n"	0 1
	The fact that it should be a builtin for 'sh'.

	There are also errors in the man page - eg suggesting that %4.s
	should be the same as %4s not %4.0s.

	I've also added a '%B' format that does the 'reverse of' %b.
	Fixes on