2009/1/4 Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bfreedesktop@benfinney.id.au">ben+freedesktop@benfinney.id.au</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">"Andrea Francia" <<a href="mailto:andrea@andreafrancia.it">andrea@andreafrancia.it</a>> writes:<br>
<br>
> * trash # trashes files and directories.<br>
> * trash-empty # empty the trashcan(s).<br>
> * trash-list # list trashed files.<br>
> * trash-restore # restore a trashed file.
</div></blockquote><div>[...] <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the first one, "trash" is presumably to be treated as a verb,<br>
operating on the object supplied as an argument. In the latter three,<br>
"trash" is a noun topic, with "empty", "list", and "restore"<br>
as verbs operating on the object supplied as argument.</blockquote><div><br>In the earlier versions trash-cli was using these commands (which are all in the form $VERB $OBJECT) :<br><br> - trash <file><br> - empty-trash<br>
- list-trash<br> - restore-trash <br><br>Then I switched to the trash-* form to gain advantage from the tab completion.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For consistency, I would expect the "put FOO in the trash" command<br>
to follow the same form as the latter three. I suggest the command<br>
form could be 'trash-put FOO'.<br>
<div class="Ih2E3d"><br>
> In the beginning I was persuaded to use the 'trash-file' name but I<br>
> don't like it very much.<br>
<br>
</div>For the reasons above, I don't like it either: it is inconsistent with<br>
the others, departing from the '$TOPIC-$VERB $OBJECT' form established<br>
by the others.<br>
</blockquote><div><br>This is the same reason I also prefer trash-put. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
<br>
> * trash-put<br>
> * trash-put-in<br>
</div>> * trash-rm<br>
> * trash-recycle<br>
> * trash-to<br>
<br>
I recommend 'trash-put FOO' as the least ugly or confusing.</blockquote><div><br>Ok. Thanks. <br></div><br>In the case you could redesign the entire command line interface what would be your choice?<br><br></div>-- <br>Andrea Francia<br>
<a href="http://andreafrancia.blogspot.com/">http://andreafrancia.blogspot.com/</a><br>