Markus Neteler wrote:
> > Because the path lacks the .exe suffix, the access() call fails.
> > G_spawn() itself doesn't need the .exe suffix, but it never gets that
> > far.
>
> Would this be hell?
>
> #ifndef __MINGW32__
> sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
> #else
> sprintf(lister, "%s/etc/lister.exe/%s", G_gisbase(),
> #endif
The .exe goes on the end:
#ifndef __MINGW32__
sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
#else
sprintf(lister, "%s/etc/lister/%s.exe", G_gisbase(),
#endif
Except ... this requires that the lister is an executable; there's no
fundamental reason why it couldn't be a script, other than the
access() check (well: that, and the fact that G_spawn() etc don't use
the shell currently).
--
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev