<?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: give rm a new undo!</title>
	<atom:link href="http://desk.stinkpot.org/tricks/index.php/2006/12/give-rm-a-new-undo/feed/" rel="self" type="application/rss+xml" />
	<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/</link>
	<description>tricks!</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:46:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Lawrence David</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/comment-page-1/#comment-9699</link>
		<dc:creator>Lawrence David</dc:creator>
		<pubDate>Thu, 21 Aug 2008 12:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/#comment-9699</guid>
		<description>awesome -- thanks ivan!!</description>
		<content:encoded><![CDATA[<p>awesome &#8212; thanks ivan!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Andrus</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/comment-page-1/#comment-9691</link>
		<dc:creator>Ivan Andrus</dc:creator>
		<pubDate>Wed, 20 Aug 2008 19:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/#comment-9691</guid>
		<description>This will break for files with spaces in the names.  It&#039;s simply a matter of adding quotes around variables in many places.  The trickiest one is the first:

for file in $*; do

should be (though I think it may require bash instead of sh)

for file in &quot;$@&quot;; do

The following naive quoting breaks because it treats all the arguments as one big argument.

for file in &quot;$*&quot;; do</description>
		<content:encoded><![CDATA[<p>This will break for files with spaces in the names.  It&#8217;s simply a matter of adding quotes around variables in many places.  The trickiest one is the first:</p>
<p>for file in $*; do</p>
<p>should be (though I think it may require bash instead of sh)</p>
<p>for file in &#8220;$@&#8221;; do</p>
<p>The following naive quoting breaks because it treats all the arguments as one big argument.</p>
<p>for file in &#8220;$*&#8221;; do</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/comment-page-1/#comment-6596</link>
		<dc:creator>D</dc:creator>
		<pubDate>Sat, 15 Sep 2007 15:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/#comment-6596</guid>
		<description>Note: in the .profile I had to use

alias rm=&#039;sh safe_rm.sh&#039;

otherwise you coudl try to make it executable by chmod the permissions or possibly call it locally with ./safe_rm.sh. I did not try either of the following.</description>
		<content:encoded><![CDATA[<p>Note: in the .profile I had to use</p>
<p>alias rm=&#8217;sh safe_rm.sh&#8217;</p>
<p>otherwise you coudl try to make it executable by chmod the permissions or possibly call it locally with ./safe_rm.sh. I did not try either of the following.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence David</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/comment-page-1/#comment-110</link>
		<dc:creator>Lawrence David</dc:creator>
		<pubDate>Tue, 05 Dec 2006 01:23:36 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/#comment-110</guid>
		<description>no spicy offerings please.</description>
		<content:encoded><![CDATA[<p>no spicy offerings please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cubicle_down_the_hallway</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/comment-page-1/#comment-109</link>
		<dc:creator>cubicle_down_the_hallway</dc:creator>
		<pubDate>Tue, 05 Dec 2006 01:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/index.php/2006/12/give-rm-a-new-undo/#comment-109</guid>
		<description>awesome! i am constructing a small shrine to you in my nook.</description>
		<content:encoded><![CDATA[<p>awesome! i am constructing a small shrine to you in my nook.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

