From owner-freebsd-current Thu Apr 11 13:27:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA08669 for current-outgoing; Thu, 11 Apr 1996 13:27:04 -0700 (PDT) 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 NAA08652 for ; Thu, 11 Apr 1996 13:26:52 -0700 (PDT) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id PAA14660 for ; Thu, 11 Apr 1996 15:27:00 -0500 Received: from tserv.lodgenet.com(204.124.120.10) by bacall via smap (V1.3) id sma014654; Thu Apr 11 15:26:31 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 OAA05381 for ; Thu, 11 Apr 1996 14:47:06 -0500 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.7.5/8.6.12) with SMTP id OAA07202 for ; Thu, 11 Apr 1996 14:48:50 -0500 (CDT) Message-Id: <199604111948.OAA07202@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.2 7/18/95 To: current@freebsd.org Subject: /bin/sh's printf Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 11 Apr 1996 14:48:50 -0500 From: "Eric L. Hernes" Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I've stumbled across a little problem with sh's printf, could someone explain what's going on here: (ttyp0@jake)$ /bin/sh (ttyp0@jake)$ printf "%04d\n" 12 12 (ttyp0@jake)$ /usr/bin/printf "%04d\n" 12 0012 It looks like they're compiled from the same sources even --?? eric. -- erich@lodgenet.com erich@rrnet.com