<div dir="ltr">Markus,<div><br></div><div>Currently, g.remove supports "g.remove vect pattern=map1,map2". Pattern can take multiple map names separated by a comma. You don't have to invent a wildcard or regex pattern for deleting a couple maps. g.mremove wouldn't have replaced g.remove without this feature.</div><div><br></div><div>Regarding the type option, in some case, we may want to remove temporary raster and vector maps at once for example:</div><div><br></div><div>g.remove rast,vect pattern="tmp*"</div><div><br></div><div>I don't think this usage is particularly dangerous because the user must specify data types explicitly and it's actually less dangerous than the old g.remove, IMO. g.remove also has the -f flag.</div><div><br></div><div>Regards,</div><div>Huidae</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 12:01 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><span class=""><br>
On Sep 13, 2014 3:54 AM, "Huidae Cho" <<a href="mailto:grass4u@gmail.com" target="_blank">grass4u@gmail.com</a>> wrote:<br>
> There are two major changes:<br></span>
...<span class=""><br>
> 2. g.mremove consolidated multiple options into the type= option.</span></p>
<p dir="ltr">I tested this just today and I am not convinced at all of this choice.<br>
It looks dangerous to me.</p>
<p dir="ltr">I would prefer to see type as single option and pattern as multi option to remain as close as possible to what it used to be, allowing for e.g.</p>
<p dir="ltr">g.remove vect pattern=map1,map2</p>
<p dir="ltr">It rarely happens that you have maps with identical name but different type which you want to remove at the same time but rather that you have different map names of the same type you want to remove...<br>
At the same time pattern allows to select something more complicated. But likely I don't want to invent a regex for deleting three maps out of many.</p>
<p dir="ltr">Best<br>
Markus</p>
<p dir="ltr"><span class="">> On Fri, Sep 12, 2014 at 9:05 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> there was an effort to replace g.list by g.mlist and the same for g.remove/g.mremove?<br>
>><br>
>> What is the status now and how would the API change?<br>
>><br>
>> We can also have one as a script with different defaults if this would help to keep compatibility (then we would be able to make the changes any time later).<br>
>><br>
>> If there is some ticket for it, please update the ticket and make it a blocker for 7.0.0.<br>
>><br>
>> Vaclav<br>
><br>
><br>
><br></span>
> _______________________________________________<br>
> grass-dev mailing list<br>
> <a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</p>
</blockquote></div><br></div>