Opened 14 years ago
Closed 10 years ago
#1259 closed enhancement (fixed)
g.remove deletes raster maps by default: could delete the wrong map
Reported by: | benducke | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.0 |
Component: | Default | Version: | svn-trunk |
Keywords: | g.remove, raster, deletion | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
If I run g.remove with only the name of a non-existing map, I get this:
g.remove tmp Removing raster <tmp> WARNING: Raster map <tmp> not found WARNING: <tmp> nothing removed
This indicates that g.remove tries to remove a raster of name "tmp" by default. I am not sure this is good behaviour. What if the user meant a vector map and forgot to explicitely type "vect=tmp". In such a case, the wrong map might get deleted, instead of just an error message being issued.
Also, the synopsis for g.remove does not indicate that there is a default removal type.
Change History (5)
comment:1 by , 14 years ago
Type: | defect → enhancement |
---|
comment:2 by , 14 years ago
comment:3 by , 10 years ago
See and comment on #2414 (Replace g.list/g.remove with g.mlist/g.mremove) which might solve this issue. This has to be solved before 7.0 because it requires interface change.
comment:4 by , 10 years ago
See #2414. Now the interface of g.remove has changed to require a type explicitly.
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing since the backport of the new interface of g.remove has been backported to relbranch7.
From ML