On Thu, Jan 14, 2010 at 7:41 AM, Glynn Clements <[email protected]> wrote: > 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:
Err, sure. > #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). So the question is if fixing the problem for g.[m]list -f brings us a big deal of new troubles. The question is how often -f is used... Despite that, someone will need to test the copying spawn.c from 7.0 before doing that in 6.4-SVN. Markus _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
