[GRASS-dev] [GRASS GIS] #1658: g.rename, g.copy do not ask for --overwrite, they just do it

GRASS GIS trac at osgeo.org
Wed May 16 16:43:08 EDT 2012


#1658: g.rename, g.copy do not ask for --overwrite, they just do it
-----------------------------------------+----------------------------------
 Reporter:  hamish                       |       Owner:  grass-dev@…              
     Type:  defect                       |      Status:  new                      
 Priority:  major                        |   Milestone:  6.5.0                    
Component:  Default                      |     Version:  svn-develbranch6         
 Keywords:  g.rename, g.copy, overwrite  |    Platform:  Linux                    
      Cpu:  x86-64                       |  
-----------------------------------------+----------------------------------
 Hi,

 discovered in devbr6, but may happen in other branches too:

 {{{
 G65> r.mapcalc one=1
  100%
 G65> r.mapcalc two=2
  100%
 G65> g.rename one,two
 Rename raster <one> to <two>
 G65> r.info -r two
 min=1
 max=1
 G65> echo $GRASS_OVERWRITE

 G65> r.mapcalc three=3
  100%
 G65> g.copy three,two
 Copy raster <three at user1> to current mapset as <two>
 G65> r.info -r two
 min=3
 max=3
 }}}


 I just lost a map :-(

 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1658>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list