Opened 5 years ago

#3823 new defect

"where" parameter incorrectly parsed in "d.vect" command on Windows

Reported by: Giacomo96 Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Display Version: svn-releasebranch76
Keywords: d.vect Cc:
CPU: x86-64 Platform: MSWindows

Description

I'm using GRASS GIS 7.6.0 on Windows 10 1809 (10.0.17763.437). I'm not sure if the version and milestone of the ticket are correct, I will change them if needed.

When I execute the d.vect command, special characters in the where parameter (like the space, "<" and ">") are not correctly interpreted, even if the query is enclosed in quotes.

An example is the following command, executed on the nc_spm_08_grass7 dataset:

d.vect schools_wake where="ADDRCITY='Raleigh' and GLEVEL='E'"

The output consists in the help page of d.vect, followed by this error message:

Sorry <GLEVEL='E'> is not a valid option

Nothing is shown on the monitor after the execution.

Therefore, it looks like the GLEVEL='E' query condition is interpreted as another parameter of the d.vect command, when it is actually part of the where parameter.

This problem happens both from the CLI (in Windows CMD) and the GUI. I've tried every possible combination of quotes and escape characters in the command, but none of them are working.

Change History (0)

Note: See TracTickets for help on using tickets.