From owner-cvs-usrbin Mon Sep 30 21:57:09 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA26799 for cvs-usrbin-outgoing; Mon, 30 Sep 1996 21:57:09 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA26782; Mon, 30 Sep 1996 21:57:00 -0700 (PDT) Date: Mon, 30 Sep 1996 21:57:00 -0700 (PDT) From: Peter Wemm Message-Id: <199610010457.VAA26782@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/printf printf.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/09/30 21:57:00 Modified: usr.bin/printf printf.c Log: When used as a shell builtin, this program decoded a subset of arguments known to printf(3) and then used printf() to format it... The only problem what the #define printf out1fmt. The code was behaving differently when run as a shell builtin since out1fmt() isn't printf(3). Simple hack. Print to a buffer and fputs (also #defined for sh) the result. This should fix the printf builtin problem in PR#1673, rather than leaving the call commented out. (printf.o was being statically linked in anyway, we might as well use it) Revision Changes Path 1.5 +9 -4 src/usr.bin/printf/printf.c