Subject: Re: bin/9847: Adding test back in to /bin/sh as an internal function
To: None <netbsd-bugs@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 04/11/2000 12:52:04
In article <20000411024659.2E72EE7@proven.weird.com>,
Greg A. Woods <netbsd-bugs@netbsd.org> wrote:
> [ On Sunday, April 9, 2000 at 21:23:47 (+0200), Martin Husemann wrote: ]
> > Subject: Re: bin/9847: Adding test back in to /bin/sh as an internal function
> >
> > SMALL should also create a smaller version for the install floppies.
> > But if code is shared (as you suggested) with the external version, it
> > wouldn't make a difference for the crunched binaries on the floppies.
> 
> No, I don't think so.  'test' is already on the i386 boot floppy in the
> crunched binary, and 'expr' probably could be without much impact in
> size.
> 
> It still makes *FAR* more sense to have these programs built in to sh
> itself rather than forked and exec'ed via the crunchgen'ed binary!

Actually it will save more space, because you can:

$ cat test
#!/bin/sh
test "$@"

$ cat expr
#!/bin/sh
expr "$@"

and then you don't need to build test and expr for the floppy install.

christos