We should be able to implement the Python version of this code idea
fairly easily. It looks like it might be the better method from a
programming point of view, as it tests for the presence of the actual
flag, rather than for a version number which will infer usage of the
flag, and which could change depending upon the development branch and
backporting decisions. <br><br><div class="gmail_quote">On Wed, Apr 28, 2010 at 10:58 PM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
<br>
On Apr 28, 2010, at 10:31 PM, Hamish wrote:<br>
<br>
> oh by the way, my current favourite shell script way of testing if a flag<br>
> exists (yet) in a module is not to test the version/revision, but to do a<br>
> more direct query:<br>
><br>
> r.watershed --interface-description | grep -c '<flag name="f">'<br>
><br>
> which should return 0 or 1.<br>
><br>
><br>
> Hamish<br>
><br>
<br>
</div></div>This won't work on Windows, however, except under msys.<br>
<font color="#888888"><br>
Michael<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Isaac I Ullah, M.A.<br><br>Archaeology PhD Candidate,<br>ASU School of Evolution and Social Change<br><br>Research Assistant,<br>Mediterranean Landscape Dynamics Project<br>
***************************************************<br><a href="mailto:isaac.ullah@asu.edu">isaac.ullah@asu.edu</a><br><a href="mailto:ullah@archaeologist.com">ullah@archaeologist.com</a><br><br><a href="http://www.public.asu.edu/~iullah">http://www.public.asu.edu/~iullah</a><br>
***************************************************<br>