Johannes Radinger wrote: > I have some questions concerning the behaviour of gparser. > In the attachment you can find a example-python-script. > > Somehow the output from gparser for X (see script) is strange: I try > to use it in a if-command but somehow I fail. > The output when X is set to 'A a' should be a "juhuu" but it isn't. > I was looking for the bug in my code but somehow I couldn't find it. > When I replace the options for X with A,B and C (single Letters), it > seems to work...Is there a problem with spaces in the options of gparser? > > I am working on GRASS6.5SVN on Mac OS X 10.6.8. > > Can anyone try the script and reproduce the error? Does anyone have > ideas where the problem in the script is located?
In 7.0, it fails because upper-case letters are not valid in option names, so it interprets an argument of the form 'X=A a' as an answer to the first option, i.e. equivalent to 'X=X=A a'. I don't know why it would fail in 6.x. -- Glynn Clements <[email protected]> _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
