Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2001 17:57:08 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Akinori MUSHA <knu@iDaemons.org>
Cc:        "Brian F. Feldman" <green@FreeBSD.org>, Sheldon Hearn <sheldonh@starjuice.net>, Ian Dowse <iedowse@maths.tcd.ie>, Brian Somers <brian@freebsd-services.com>, 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>
In-Reply-To: <86itc3ae8b.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Thu, Nov 22, 2001 at 08:36:20AM %2B0900
References:  <bright@mu.org> <20011121125425.J13393@elvis.mu.org> <200111212100.fALL0ch87092@green.bikeshed.org> <86itc3ae8b.wl@archon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Akinori MUSHA <knu@iDaemons.org> [011121 17:36] wrote:
> At Wed, 21 Nov 2001 16:00:38 -0500,
> green wrote:
> > 
> > Alfred Perlstein <bright@mu.org> 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




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