Date: Fri, 12 Apr 1996 08:22:33 -0500 (CDT) From: erich@lodgenet.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1136: broken printf in sh(1) Message-ID: <199604121322.IAA04151@jake.lodgenet.com> Resent-Message-ID: <199604121400.HAA05058@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1136 >Category: bin >Synopsis: broken printf in sh(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 12 07:00:01 PDT 1996 >Last-Modified: >Originator: Eric L. Hernes >Organization: FreeBSD >Release: FreeBSD 2.2-CURRENT i386 >Environment: >Description: the builtin printf in sh(1) behaves differently than /usr/bin/printf, specifically: >How-To-Repeat: (ttyp0@jake)$ /bin/sh (ttyp0@jake)$ printf "%04d\n" 12 12 (ttyp0@jake)$ /usr/bin/printf "%04d\n" 12 0012 >Fix: I'm working around by specifying /usr/bin/printf for strings that require '0' padding. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604121322.IAA04151>