From owner-freebsd-bugs Fri Apr 12 07:00:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA05071 for bugs-outgoing; Fri, 12 Apr 1996 07:00:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA05058 Fri, 12 Apr 1996 07:00:03 -0700 (PDT) Resent-Date: Fri, 12 Apr 1996 07:00:03 -0700 (PDT) Resent-Message-Id: <199604121400.HAA05058@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, erich@lodgenet.com Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA05001 for ; Fri, 12 Apr 1996 06:59:56 -0700 (PDT) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id JAA01014 for ; Fri, 12 Apr 1996 09:00:17 -0500 Received: from tserv.lodgenet.com(204.124.120.10) by bacall via smap (V1.3) id sma001012; Fri Apr 12 09:00:04 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by tserv.lodgenet.com (8.6.12/8.6.12) with ESMTP id IAA08672 for ; Fri, 12 Apr 1996 08:20:50 -0500 Received: (from erich@localhost) by jake.lodgenet.com (8.7.5/8.6.12) id IAA04151; Fri, 12 Apr 1996 08:22:33 -0500 (CDT) Message-Id: <199604121322.IAA04151@jake.lodgenet.com> Date: Fri, 12 Apr 1996 08:22:33 -0500 (CDT) From: erich@lodgenet.com Reply-To: erich@lodgenet.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1136: broken printf in sh(1) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: