[GRASS5] [bug #3009] (grass) g.remove - accidental removing possible!

Request Tracker grass-bugs at intevation.de
Thu Feb 17 18:06:07 EST 2005


this bug's URL: http://intevation.de/rt/webrt?serial_num=3009
-------------------------------------------------------------------------

Subject: g.remove - accidental removing possible!

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.0.cvs_src_snapshot_2005_01_22

If the user doesn't specify the 'type' in g.remove then raster is taken as a default, which may lead to accidental removing what you not intended to. Seems scarry.

Example:

1. one wants to remove a vector named 'map'
2. he is somewhat likely to type 'g.remove map' forgetting to specify 'vect='
3. accidently there is also a raster called 'map' in his mapset
3. disaster, raster gone

Actualy it happened to me once. I suggest that there was no default target at all. Just in case.

g.mremove suffers the same problem!

I also suggest to resign of default raster target for g.copy too and any other using this scheme.

Maciek

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




More information about the grass-dev mailing list