#783: r.watershed fails on wingrass ---------------------------+------------------------------------------------ Reporter: hamish | Owner: [email protected] Type: defect | Status: new Priority: major | Milestone: 6.4.0 Component: Raster | Version: 6.4.0 RCs Resolution: | Keywords: r.watershed, wingrass Platform: MSWindows XP | Cpu: x86-32 ---------------------------+------------------------------------------------ Comment (by mmetz):
Replying to [comment:10 glynn]: > > Does it work (with the quotes) if you add ".exe" to the end of the command name and/or use G_convert_dirseps_to_host()? > Nope. As long as there is any quote at the very beginning of the command string, system and G_system() remove that quote, search for the last quote, remove everything after the last quote (I tried putting flags at the end, they don't get quotes), and add their own quotes to the beginning and end (locale-specific, double quotes on my German XP version, single quotes on English XP version). In order to avoid both quotes and spaces, the only alternative I could find was adding the path to r.watershed.[ram|seg] to PATH or r.watershed.[ram|seg] to something that's in PATH. But r.watershed.[ram|seg] is currently not in PATH in order to hide them from users IIRC. Another possibility could be to rewrite r.watershed and put r.watershed.[ram|seg] into a local library like e.g. r.li.daemon? In short, I could not find a way to make it work with quotes on windows (BTW, neither osgeo4w nor mingw-w64 with XP 64bit). > > I suspect that eliminating the quotes will mean that it fails if GRASS is installed in a directory which contains spaces, and without Administrator privileges you may be unable to install GRASS in a directory which doesn't contain spaces. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/783#comment:11> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
