Subject: Re: Strange shell problem
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 11/18/2002 23:15:06
> 'which' on NetBSD is a c-shell script.  The part relevant to this
> problem is
> 
> 	if ( ! $?found ) then
> 		echo no $arg in $path
> 	endif
> 
> You can easily add an "exit 1" there after the "echo ...' statement
> to make it do what you want.
> 
> Or, you might try 'whereis'.

or 'what'

FWIW there are bugs in the standard shell wrt back quotes and $?.
I'd just assumed that this was one of them.

	David

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