Subject: Re: bin/9847: Adding test back in to /bin/sh as an internal function
To: None <netbsd-bugs@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-bugs
Date: 04/10/2000 01:11:22
Martin Husemann <martin@rumolt.teuto.de> typed:
:> I'm not sure it should.  SMALL should only be for getting sh to run on
:> machines with truly limited I&D space and NetBSD doesn't have that
:> problem anywhere.
: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.

Actually, all of test's subroutines - except main.c which the floppy
generator renames - would be multiply defined in the resultant binary.
It might just be a matter of putting 

#if !defined(SHELL) || (defined(SHELL) && !defined(SMALL))

around all of test's routines except main()/testcmd()

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874