r.watershed fails on wingrass
|Reported by:||hamish||Owned by:|
GRASS 6.4.0svn (spearfish60) > r.watershed elevation=elevation.1 0m@PERMANENT threshold=10000 basin=elev10.basin s tream=elev10.stream D1/1: Mode: All in RAM D1/1: Running: "c:/GRASS-6-SVN/etc/r.watershed.ram" el="elevation.10m@PERMANENT" t=10000 b a="elev10.basin" se="elev10.stream" 'c:/GRASS-6-SVN/etc/r.watershed.ram" el="elevation.10m@PERMANENT" t=10000 ba="elev10.basin " se="elev10.stream' is not recognized as an internal or external command, operable program or batch file. WARNING: Subprocess failed with exit code 1 WARNING: category information for [elev10.basin] in [user1] missing or invalid WARNING: category information for [elev10.stream] in [user1] missing or invalid
r.watershed launches a .seg or .ram version of itself from $GISBASE/etc/. It builds up a char string with options then runs the string via system().
note in the above error messsage the " from the 1st arg and " from the end of the last arg have been stripped off. It seems that the quoting is greedy and the entire string is being treated as a the executable name?
ps- will the .ram and .seg modules fail in GRASS 7 where uppercase option names are disallowed? (eg LS= and S=)
pps- should G_convert_dirseps_to_host() be done in the G_gisbase() and G_gisdbase() functions instead or making the modules do it?