On Apr 28, 2010, at 10:31 PM, Hamish wrote:

> oh by the way, my current favourite shell script way of testing if a flag
> exists (yet) in a module is not to test the version/revision, but to do a
> more direct query:
> 
>  r.watershed --interface-description | grep -c '<flag name="f">'
> 
> which should return 0 or 1.
> 
> 
> Hamish
> 

This won't work on Windows, however, except under msys.

Michael
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to