[GRASS5] Re: [GRASS-CVS] scott: grass/src/scripts/contrib/s.sv2svfit README,NONE,1.1 s.sv2svfit,NONE,1.1
Glynn Clements
glynn.clements at virgin.net
Wed May 5 17:08:46 EDT 2004
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 at virgin.net>
More information about the grass-dev
mailing list