[GRASS-dev] Re: [GRASS GIS] #783: r.watershed fails on wingrass
GRASS GIS
trac at osgeo.org
Sat Oct 17 07:18:13 EDT 2009
#783: r.watershed fails on wingrass
---------------------------+------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: closed
Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: fixed | Keywords: r.watershed, wingrass
Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by mmetz):
* status: new => closed
* resolution: => fixed
Comment:
Replying to [comment:13 glynn]:
>
> One of the first Google hits for "windows command syntax" suggests that
two "levels" of quotes are required:
> {{{
> CMD /k ""c:\batch files\test.cmd" "Parameter 1 with space" "Parameter2
with space""
> }}}
>
> Brief testing from the command line confirms this. I suggest trying this
with both system() and G_system(); if the two don't match, then G_system()
needs to add the outermost quotes itself.
Adding outermost quotes works with both system() and G_system(), but only
on Windows. Linux does not like the outermost quotes, but then there were
no problems reported under Linux, therefore I have
{{{
#ifdef __MINGW32__
#endif
}}}
the new quotes in r39541-3.
Worksforme, closing ticket.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/783#comment:14>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list