From owner-cvs-all Wed Nov 21 15:57:13 2001 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 0D11437B416; Wed, 21 Nov 2001 15:57:09 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 6530181D0E; Wed, 21 Nov 2001 17:57:08 -0600 (CST) Date: Wed, 21 Nov 2001 17:57:08 -0600 From: Alfred Perlstein To: Akinori MUSHA Cc: "Brian F. Feldman" , Sheldon Hearn , Ian Dowse , Brian Somers , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man1 builtin.1 src/bin/sh Makefile builtins.def sh.1 src/usr.bin/printf printf.1 Message-ID: <20011121175708.R13393@elvis.mu.org> References: <20011121125425.J13393@elvis.mu.org> <200111212100.fALL0ch87092@green.bikeshed.org> <86itc3ae8b.wl@archon.local.idaemons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <86itc3ae8b.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Thu, Nov 22, 2001 at 08:36:20AM +0900 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 * Akinori MUSHA [011121 17:36] wrote: > At Wed, 21 Nov 2001 16:00:38 -0500, > green wrote: > > > > Alfred Perlstein wrote: > > > Since these are now builtins, wouldn't it sort of make sense to > > > make 'sh' capable of being /bin/test, /bin/printf /whatever/builtin > > > based on argv[0]? :) > > > > > > Then we can just use hardlinks, a bit gross, but it would save > > > quite a bit of space imo. > > > > I hadn't thought of that. That really does seem like quite a good idea! > > I doubt that... It would result in test's bloat (55k -> 640k) and > just increase the memory usage, no? Uh, sorta, depends on what you consider more important. Yes, this signifigantly increases the footprint of test(1) however it wouldn't really matter if another copy of printf(1) or sh(1) was running at the same time. You'd reduce the on disk cost by nearly 55k (at least for test(1), i'm not sure how big printf(1) is). > However, I think it would be a good idea for boot floppies. (I'm not > sure if it would work when integrated into a crunched binary using > crunchgen) Dunno about that either. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message