Bug 1136

Summary: broken printf in sh(1)
Product: Base System Reporter: erich <erich>
Component: binAssignee: Joerg Wunsch <joerg>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2-CURRENT   
Hardware: Any   
OS: Any   

Description erich 1996-04-12 15:00:01 UTC
the builtin printf in sh(1) behaves differently than
/usr/bin/printf, specifically:

Fix: 

I'm working around by specifying /usr/bin/printf for
strings that require '0' padding.
How-To-Repeat: 
(ttyp0@jake)$ /bin/sh
(ttyp0@jake)$ printf "%04d\n" 12
  12
(ttyp0@jake)$ /usr/bin/printf "%04d\n" 12
0012
Comment 1 Joerg Wunsch freebsd_committer freebsd_triage 1996-04-12 22:36:24 UTC
Responsible Changed
From-To: freebsd-bugs->joerg

I'm goinmg to deal with sh(1) bugs some day. 
Comment 2 Peter Wemm freebsd_committer freebsd_triage 1996-09-01 13:42:53 UTC
State Changed
From-To: open->closed

Fixed after 4.4Lite2 sh code merge