[GRASS-dev] Re: [GRASS-user] 'where' sql command in d.vect and
others
Glynn Clements
glynn at gclements.plus.com
Sat Mar 24 22:59:45 EDT 2007
Seb wrote:
> > I suspect that this is a bug in G_recreate_command().
>
> > What does "d.save -a" output?
>
> This returns the following for the 'where' parameter:
>
>
> where="str_3='"W Arctic"'"
>
>
> exactly as it was entered in the display manager, which wouldn't work from
> the command line or a script because the double quotes (within the single
> quotes) are not escaped.
By "display manager", are you referring to d.m or gis.m? d.m is
essentially obsolete; any non-trivial bugs are unlikely to get fixed.
OTOH, gis.m shouldn't require any additional quoting in most cases (in
a command layer, complex options should be enclosed entirely in
braces, e.g. "d.vect map {where=str_3 = 'W Arctic'}").
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list