<div dir="ltr">Well, the g.mremove interface looks convenient, but can be dangerous also. For example, yesterday, I almost deleted my raster files by using the positional parameter thing while trying to delete all my temporary vectors.<div>
<br></div><div>g.mremove tmp*</div><div><br></div><div>Whops! Did I want to delete tmp* rasters or vectors? I forgot to add vect= and my tmp* rasters were listed. Thanks to the -f option. Like Glynn said, having separate parameters allows deleting different types of data, but its interface is long and not rush-to-hit-enter mistake free. Also, if we want to add the exclude= parameter to g.mremove, it's not just one but 12 because there are 12 data types and pattern parameters. Wow! Total 24 pattern and exclude parameters. It's also more coding and headache. I would like to suggest the following changes:</div>
<div><br></div><div>1. Change g.mremove syntax to g.mremove type= pattern=</div><div>2. Add exclude= to g.mremove.</div><div>3. Replace g.remove/g.list with g.mremove/g.mlist.</div><div><br></div><div>Regards,</div><div>Huidae</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 6:19 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"><div class="">On Mon, Mar 24, 2014 at 7:04 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br>
> On Wed, Mar 19, 2014 at 7:14 AM, Paulo van Breugel <<a href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a>><br>
> wrote:<br>
</div><div class="">>> Would it be difficult to add an option to use 'map name exclusion<br>
>> patterns' like is available in g.mlist?<br>
><br>
> I'm always very confused when switching between g.mlist and g.mremove. The<br>
> parameters are almost the same, yet different.<br>
><br>
> g.mlist type=rast pattern="tmp_*"<br>
><br>
> g.mremove rast="tmp_*"<br>
><br>
<br>
</div>In the past, there was some discussion about this with a longer answer<br>
from Glynn:<br>
<a href="http://lists.osgeo.org/pipermail/grass-dev/2008-October/040506.html" target="_blank">http://lists.osgeo.org/pipermail/grass-dev/2008-October/040506.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">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>
</div></div></blockquote></div><br></div>