Ticket #1692 (closed defect: fixed)
calling a script within a script failing on Windows XP
|Reported by:||hamish||Owned by:||martinl|
|Keywords:||v.random.cover, wingrass, shell scripts||Cc:||grass-dev@…|
We're trying to run v.random.cover(.sh) from grass6 addons on Windows XP using the standard 6.4.2-2 prebuilt binaries. That script calls v.report(.sh), but v.report fails. "g.parser has encountered a problem and needs to close." and v.report exits with a non-zero error code.
turning debug to level 1 I see "ret = 1" from the G_spawn() command.
Running the exact same v.report command from the msys command line works fine.
I'd note v.report sends data to both stderr and stdout, but that's all after the g.parser call.
I seem to recall a problem long ago where in wingrass a script calling another script didn't work.
Running which v.report from the msys command prompt shows C:/Program Files/GRASS 6.4.2/scripts, not the wrapper .bat file in $GISBASE/bin/. maybe it doesn't like $0 != what gets run on the second g.parser pass??
I'm not sure what to try to debug next.
ps- we were also unable to download any of the addons directly with the gui extension tool, although the zip files seem ok on the server. Is it working for anyone with those 6.4.2-2 binaries?