[GRASS-dev] Re: [GRASS-SVN] r46717 - grass/branches/releasebranch_6_4/scripts/v.build.all

Hamish hamish_b at yahoo.com
Wed Jun 29 04:00:50 EDT 2011


> > > >     CMD="v.build map=${VECT}@${MAPSET}"
> > > > -    g.message "$CMD"
> > > > +    g.message message="$CMD"
Hamish:
> > Needed in this case because the string contains a '=',
> > which confuses the parser.
Glynn:
> That should really be fixed in the parser. Even in 6.x, an
> option name cannot contain a space.

it's more general than that, e.g. this would need the option=
to be specified:
   g.message message="minimum=[$min]"

as the short-cut version will fail:
   g.message "minimum=[$min]"


so in those cases just don't use the short-cut.
not a big problem & not really the parser's fault.


Hamish



More information about the grass-dev mailing list