Subject: Re: bin/9847: Adding test back in to /bin/sh as an internal function
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Martin Cracauer <cracauer@cons.org>
List: netbsd-bugs
Date: 04/11/2000 16:41:04
In <Pine.GSO.4.10.10004111511340.23042-100000@rfhpc8320.fh-regensburg.de>, Hubert Feyrer wrote: 
> On Tue, 11 Apr 2000, Christos Zoulas wrote:
> > $ cat test
> > #!/bin/sh
> > test "$@"
> 
> Mmm, the solaris approach. Also affects kill(1), it seems?

You should be careful with this integration stuff.  Try this on
Solaris:

sh -c  'test -n ; echo I must show up no matter what'
ksh -c 'test -n ; echo I must show up no matter what'

Obviously, sh's test(1) is compiled from the same source as the
standalone test(1), except that someone forgot to conditionalize the
exit() call on errors...

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536