<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Trash with Bash</title>
	<atom:link href="http://hash-bang.net/2009/03/trash-with-bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://hash-bang.net/2009/03/trash-with-bash/</link>
	<description>The start of all wonderful things</description>
	<lastBuildDate>Sun, 20 Nov 2011 20:29:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Linux Tips &#124; İsmail SEZEN</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-4780</link>
		<dc:creator>Linux Tips &#124; İsmail SEZEN</dc:creator>
		<pubDate>Sun, 28 Aug 2011 02:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-4780</guid>
		<description>[...] the pseudo-code into your .bashrc file.[5] ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 function trash&#040;&#041; &#123; if &#091; -d [...]</description>
		<content:encoded><![CDATA[<p>[...] the pseudo-code into your .bashrc file.[5] ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 function trash&#040;&#041; &#123; if &#091; -d [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dragonauta</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2378</link>
		<dc:creator>dragonauta</dc:creator>
		<pubDate>Fri, 16 Oct 2009 12:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2378</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-2351&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-2351&quot; rel=&quot;nofollow&quot;&gt;mc&lt;/a&gt; :&lt;/strong&gt;
Oddly Alias based commands do not use aliases themselves.
So the rm used in the ‘emptytrash’ is actually the real one.
&lt;/blockquote&gt;
Wow, I didn&#039;t know that... Thanks!

@anonymous: thanks you too for that tip.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-2351"><p>
<strong><a href="#comment-2351" rel="nofollow">mc</a> :</strong><br />
Oddly Alias based commands do not use aliases themselves.<br />
So the rm used in the ‘emptytrash’ is actually the real one.
</p></blockquote>
<p>Wow, I didn&#8217;t know that&#8230; Thanks!</p>
<p>@anonymous: thanks you too for that tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mc</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2351</link>
		<dc:creator>mc</dc:creator>
		<pubDate>Thu, 08 Oct 2009 03:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2351</guid>
		<description>Oddly Alias based commands do not use aliases themselves.

So the rm used in the &#039;emptytrash&#039; is actually the real one.</description>
		<content:encoded><![CDATA[<p>Oddly Alias based commands do not use aliases themselves.</p>
<p>So the rm used in the &#8216;emptytrash&#8217; is actually the real one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2348</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 07 Oct 2009 15:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2348</guid>
		<description>Why don&#039;t you simply use:

gvfs-trash another-useless-file

It will move file to gnome&#039;s trash. The command is long? alias it to something short like &quot;trash&quot;</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t you simply use:</p>
<p>gvfs-trash another-useless-file</p>
<p>It will move file to gnome&#8217;s trash. The command is long? alias it to something short like &#8220;trash&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dragonauta</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2347</link>
		<dc:creator>dragonauta</dc:creator>
		<pubDate>Wed, 07 Oct 2009 14:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2347</guid>
		<description>Hi, I didn&#039;t try your script yet, but looks like you have a loop

If I&#039;m right, 
if you use rm in your function you&#039;ll have an endless loop because the alias &quot;rm=trash&quot;

the line rm -r &quot;$HOME/.trashcan/$1&quot; should be rm! &quot;$HOME/.trashcan/$1&quot;
because you second alias &#039;rm!=/bin/rm -r&#039;</description>
		<content:encoded><![CDATA[<p>Hi, I didn&#8217;t try your script yet, but looks like you have a loop</p>
<p>If I&#8217;m right,<br />
if you use rm in your function you&#8217;ll have an endless loop because the alias &#8220;rm=trash&#8221;</p>
<p>the line rm -r &#8220;$HOME/.trashcan/$1&#8243; should be rm! &#8220;$HOME/.trashcan/$1&#8243;<br />
because you second alias &#8216;rm!=/bin/rm -r&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mc</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2257</link>
		<dc:creator>mc</dc:creator>
		<pubDate>Sat, 05 Sep 2009 05:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2257</guid>
		<description>Yup, indeed you are correct that there is a project hosted now that replicates this functionality (using the main trashcan to boot). &lt;a href=&quot;http://code.google.com/p/trash-cli/&quot; rel=&quot;nofollow&quot;&gt;Trash-cli&lt;/a&gt; was released &lt;em&gt;after&lt;/em&gt; this quick bash script was written.

I still prefer the above mainly because: 1) you don&#039;t have to install a package (making it portable within the .bashrc file) and 2) Personally I never use the FreeDesktop / Gnome trash-can anyway. Personal preferences rule and all.

You are correct that a backslash before any command instructs bash to use the regular command (not an alias), I neglected to mention this in the above article. I much prefer the alarming exclamation mark though to mentally add a &#039;are you sure you want to do this&#039; stage. Again, merely a personal preference.</description>
		<content:encoded><![CDATA[<p>Yup, indeed you are correct that there is a project hosted now that replicates this functionality (using the main trashcan to boot). <a href="http://code.google.com/p/trash-cli/" rel="nofollow">Trash-cli</a> was released <em>after</em> this quick bash script was written.</p>
<p>I still prefer the above mainly because: 1) you don&#8217;t have to install a package (making it portable within the .bashrc file) and 2) Personally I never use the FreeDesktop / Gnome trash-can anyway. Personal preferences rule and all.</p>
<p>You are correct that a backslash before any command instructs bash to use the regular command (not an alias), I neglected to mention this in the above article. I much prefer the alarming exclamation mark though to mentally add a &#8216;are you sure you want to do this&#8217; stage. Again, merely a personal preference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AprilCoolsDay</title>
		<link>http://hash-bang.net/2009/03/trash-with-bash/comment-page-1/#comment-2250</link>
		<dc:creator>AprilCoolsDay</dc:creator>
		<pubDate>Thu, 03 Sep 2009 13:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=121#comment-2250</guid>
		<description>Maybe you could use trash-cli.

You don&#039;t have to have an alias for the original rm. \rm would do the same thing as the original rm.</description>
		<content:encoded><![CDATA[<p>Maybe you could use trash-cli.</p>
<p>You don&#8217;t have to have an alias for the original rm. \rm would do the same thing as the original rm.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

