<div dir="ltr"><div><div><div><div><div>Hi Martin,<br><br></div>This fix only affects the history, not its behavior. "<a href="http://v.info">v.info</a> -h n" gives you:<br><br>COMMAND: v.edit map="n" layer="1" type="point,line,boundary,centroid" tool="delete" threshold=-1,0,0 where="" snap="no"<br><br></div>Without this fix, you'll see:<br><br>COMMAND: v.edit map="n" layer="1" type="point,line,boundary,centroid" tool="delete" threshold=-1,0,0 snap="no"<br><br></div>and cannot reuse this command without manually adding where="".<br><br></div>BTW, I think v.edit n tool=delete where="" should delete all features because you're selecting all records by "select * from n" without any where conditions. So your results look OK.<br><br></div>Huidae<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 4:51 PM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
2016-03-15 9:56 GMT+01:00  <<a href="mailto:svn_grass@osgeo.org">svn_grass@osgeo.org</a>>:<br>
> Author: hcho<br>
> Date: 2016-03-15 01:56:28 -0700 (Tue, 15 Mar 2016)<br>
> New Revision: 68061<br>
><br>
> Modified:<br>
>    grass/trunk/lib/gis/parser.c<br>
> Log:<br>
> G_recreate_command: Add empty answers.<br>
> Fix the command history for e.g., v.edit where="". Without this fix, where="" is not included, which makes an invalid command.<br>
<br>
</span>I tried to backport this commit to relbr70. My quick test:<br>
<br>
v.random out=n n=100 --o<br>
v.db.addtable n<br>
<br>
leads to the all features removed.<br>
<br>
v.edit n tool=delete where=""<br>
Selecting features...<br>
100 of 100 features selected from vector map <n@PERMANENT><br>
100 features deleted<br>
<br>
I thought that this should be fixed by this commit, right? So no<br>
features removed (?)<br>
<br>
Thanks for explanation. Martin<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin Landa<br>
<a href="http://geo.fsv.cvut.cz/gwiki/Landa" rel="noreferrer" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
<a href="http://gismentors.cz/mentors/landa" rel="noreferrer" target="_blank">http://gismentors.cz/mentors/landa</a><br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></font></span></blockquote></div><br></div>