Re: make release abends with "*** Error code 1" SOLVED ERRATUM

Simon Truss <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.