Date: Sun, 21 Jul 2002 18:05:47 +1000 From: Tim Robbins <tjr@FreeBSD.ORG> To: Bruce Evans <bde@zeta.org.au> 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> In-Reply-To: <20020721163502.R19389-100000@gamplex.bde.org>; from bde@zeta.org.au on Sun, Jul 21, 2002 at 04:40:31PM %2B1000 References: <200207210550.g6L5oJgj089304@freefall.freebsd.org> <20020721163502.R19389-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020721180547.A29241>