Bug 1136 - broken printf in sh(1)
Summary: broken printf in sh(1)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Joerg Wunsch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-04-12 15:00 UTC by erich
Modified: 1996-09-01 13:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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