Subject: Re: make release abends with "*** Error code 1" SOLVED ERRATUM
To: Woodchuck <djv@bedford.net>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 01/22/2007 21:46:23
On Mon, Jan 22, 2007 at 01:27:33PM -0500, Woodchuck wrote:
> On Mon, 22 Jan 2007, I, Woodchuck, wrote:
> 
> > The first thing to do is bracket the interior of .kshrc with
> > 
> > 	if [ -o interactive ]; then
> > 		. /etc/ksh.kshrc
> > 		<other stuffs>
> > 	fi
> 
> Alas, I thought I were done.  This recommendation does not work
> on NetBSD, because 
> 	if [ -o <some shell state> ]
> is bogus.  It is bogus because sh does not implement test/[ as
> an internal, but has recourse to /bin/[.

Wrong, [ is a shell builtin, but you can't test shell options that way
as -o isn't a valid operator to test.
You could (probably) look for 'i' in $-

	David

-- 
David Laight: david@l8s.co.uk