[GRASS5] WARNING: be careful with g.remove!!!

Markus Neteler neteler at itc.it
Mon Apr 22 16:47:54 EDT 2002


On Mon, Apr 22, 2002 at 08:13:10PM +0100, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > I just discovered that
> > 
> > g.remove rast=
> > REMOVE []
> >  raster
> >  header
> >  category
> >  color
> >  history
> >  misc
> >  fcell
> >  g3dcell
> > 
> > will remove ALL raster maps in your mapset.
> > 
> > WARNING!!!
> > 
> > Don't try this at home. We have to fix that immediately
> 
> I suggest changing G_remove() so that it only removes individual
> files (with unlink()), and not entire directories.

Glynn,

could you change that? I am pretty busy with recovering my data...
This should be fixed very soon. It's surprising that I am the first
to run into this trap.

 Markus



More information about the grass-dev mailing list