[GRASS-dev] [bug #5197] (grass) G_parser() didn't catch 'old, vector, vector'

GRAS63> v.distance from=dummy1 to=dummy2 upload=cat col=nic
ERROR: Could not find input map <dummy1>

for 'old,vector,vector' the parser doesn't test if the map exists, only that
the string exists. that's left to the module when it tries to open the map:

v.distance/main.c:
G_fatal_error(_("Could not find input map <%s>"), from_opt->answer);

but 'new,vector,vector' checks and gives an error if it exists (without --o).
Maybe the "map already exists" part of that test could ported to old,map,map?

Hamish

-------------------------------------------- Managed by Request Tracker