From owner-cvs-all Sun Jul 21 1: 7:22 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 375BD37B400; Sun, 21 Jul 2002 01:07:17 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (187.b.004.mel.iprimus.net.au [210.50.37.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86B1343E42; Sun, 21 Jul 2002 01:07:14 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (c1ksgj69pjzlay8p@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g6L87AEu031172; Sun, 21 Jul 2002 18:07:11 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g6L85r7U031108; Sun, 21 Jul 2002 18:05:53 +1000 (EST) Date: Sun, 21 Jul 2002 18:05:47 +1000 From: Tim Robbins To: Bruce Evans Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/bin/sh sh.1 Message-ID: <20020721180547.A29241@dilbert.robbins.dropbear.id.au> References: <200207210550.g6L5oJgj089304@freefall.freebsd.org> <20020721163502.R19389-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020721163502.R19389-100000@gamplex.bde.org>; from bde@zeta.org.au on Sun, Jul 21, 2002 at 04:40:31PM +1000 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jul 21, 2002 at 04:40:31PM +1000, Bruce Evans wrote: > On Sat, 20 Jul 2002, Tim J. Robbins wrote: > > > tjr 2002/07/20 22:50:16 PDT > > > > Modified files: (Branch: RELENG_4) > > bin/sh sh.1 > > Log: > > Restore the note about printf(1) being a shell builtin that was lost in the > > previous MFC. > > I'd like to unbreak this in -current too. The bloat of /bin/sh from 90K > text in FreeBSD-1 to 600K text today has very little to do with it having > a few small builtins. Are you saying you'd like to see printf made a builtin again? The only problem I have with it being a builtin is that it's not really used often enough. FWIW, I can get FreeBSD 4.6's sh's text size down to 126K (entire binary is 156K) by #define'ing JOBS to 0 in shell.h and adding -DNO_HISTORY (which also disables line editing) to CFLAGS, and removing the call to getpwnam() in expand.c. Removing the printf builtin brings the text size down to 122K, which pretty much confirms what you say about it not contributing to bloat. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message