Subject: Re: exit/return: /bin/sh in netbsd vs. /bin/sh in freebsd
To: David Laight <david@l8s.co.uk>
From: Lubos Vrbka <shnek@chemi.muni.cz>
List: netbsd-help
Date: 04/16/2003 17:11:11
hi,
one simple example:
case "$var" in
"a") commands
;;
"b") commands
;;
"c")
return 0
;;
esac
works under netbsd, fails under freebsd - writes error message about bad
usage of return and then doesn't return to the calling script, but continues
with execution... and it of course causes problems...
the whole package can be downloaded on
http://www.ncbr.chemi.muni.cz/~shnek/Download/segrms.tgz
regards,
lubos
-
#################################################
Lubos Vrbka
National Centre for Biomolecular Research
Masaryk university, Brno, Czech Republic
shnek@chemi.muni.cz
http://www.chemi.muni.cz/~shnek
tel. +420 541 129 508
#################################################