Subject: Re: exit/return: /bin/sh in netbsd vs. /bin/sh in freebsd
To: Lubos Vrbka <shnek@chemi.muni.cz>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 04/16/2003 15:17:27
> i have a set of shellscripts (/bin/sh) and use "return [value]" inside. 
> it works fine on netbsd, but one of my colleagues using freebsd has 
> problems with this. shell complains:
> return can be used only in sourced scripts and inside cycles...
> 
> the situation looks as follows: script 1 calls other scripts (it just 
> executes them, variables are transferred via command line parameters)... 
> i.e. i don't source them...

Can you supply a short example?

	David

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