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

WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!

Folks,

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 just lost one day of work).

Markus

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 Clements <glynn.clements@virgin.net>

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

Markus Neteler wrote:

> I suggest changing G_remove() so that it only removes individual
> files (with unlink()), and not entire directories.

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.

Done.

--
Glynn Clements <glynn.clements@virgin.net>