Markus Neteler wrote: > >> 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). > > Is that a +/-0 or a -1 for the second patch?
I'd say +1. Having it only work with a .exe is preferable to it not working at all. -- Glynn Clements <[email protected]> _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
