[GRASS-dev] [GRASS GIS] #3918: g.findfile issue

#3918: g.findfile issue
-------------------------+-------------------------
Reporter: vincent | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Trying to test the existence of maps with g.findfile I see there is
something wrong with the command and its manual. It says the -l option
provides a list of "elements" keywords. In my case it gives the
following:

{{{
      raster (raster map(s))
      raster_3d (3D raster map(s))
      vector (vector map(s))
      label (paint label file(s))
      region (region definition(s))
      group (imagery group(s))
}}}

But in case I want to test if raster map foo exits (and it actually
exists) the following command says it does not:

{{{
g.findfile element=raster file=foo
}}}

whereas

{{{
g.findfile element=cell file=foo
}}}

matches the map.

In fact, the file $GISBASE/etc/element_list contains these keywords:

{{{
      cell:raster:raster:raster map(s)
      cellhd:header
      cats:category
      colr:color
      hist:history
      cell_misc:misc
      fcell:fcell
      g3dcell:g3dcell
      grid3:raster_3d:3D raster:3D raster map(s)
      vector:vector:vector:vector map(s)
      paint/labels:label:label:paint label file(s)
      windows:region:region definition:region definition(s)
      group:group:imagery group:imagery group(s)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3918&gt;
GRASS GIS <https://grass.osgeo.org>