Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 1996 09:59:41 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        erich@lodgenet.com (Eric L. Hernes)
Subject:   Re: /bin/sh's printf
Message-ID:  <199604120759.JAA09635@uriah.heep.sax.de>
In-Reply-To: <199604111948.OAA07202@jake.lodgenet.com> from "Eric L. Hernes" at Apr 11, 96 02:48:50 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Eric L. Hernes wrote:
> 
> 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 --??

Except that the source has #ifdef SHELL hooks.

Argl, yet another bogon in the shell.  Please, file a PR for it.  I'm
going to deal with all the shell PR's i can resolve anytime soon, and
will also see if 4.4BSD-Lite2 has already fixed something.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604120759.JAA09635>