Subject: Re: make release abends with "*** Error code 1" SOLVED ERRATUM
To: Woodchuck <djv@bedford.net>
From: Simon Truss <simon@bigblue.demon.co.uk>
List: netbsd-help
Date: 01/22/2007 18:51:26
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

how about:

  case $- in *i*)
       # commands for interactive use only
  esac

its documented in the sh man page and works for me.

Simon