Hi,
On Wed, May 05, 2004 at 03:49:30AM +0200, grass@intevation.de wrote:
Author: scott
Update of /grassrepository/grass/src/scripts/contrib/s.sv2svfit
[...]
# what to do in case of user break:
function exitprocedure()
{
echo "User break!"
#cleanup
exit 1
}
Just a hint: The word "function" should be avoided. It
causes problems under Cygwin (AFAIK).
So:
exitprocedure()
{
echo "User break!"
#cleanup
exit 1
}
Please recheck the uploads from yesterday.
Thanks,
Markus
Markus Neteler wrote:
> # what to do in case of user break:
> function exitprocedure()
> {
> echo "User break!"
> #cleanup
> exit 1
> }
Just a hint: The word "function" should be avoided. It
causes problems under Cygwin (AFAIK).
ISTR that one of the BSDs also uses "ash" as its /bin/sh, so it will
also cause problems there.
BTW, ash is included in most Linux distributions (although they
invariably use bash for /bin/sh); it's useful for checking whether
you've inadvertently used any bash-isms in a script.
--
Glynn Clements <glynn.clements@virgin.net>