<?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"
	>
<channel>
	<title>Comments on: Top 10 interactive shell anti-patterns</title>
	<atom:link href="http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/</link>
	<description>not entirely unlike a blog</description>
	<pubDate>Thu, 24 Jul 2008 00:53:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Software development links &#124; Steve Glendinning</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9644</link>
		<dc:creator>Software development links &#124; Steve Glendinning</dc:creator>
		<pubDate>Tue, 16 Oct 2007 20:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9644</guid>
		<description>[...] Lamb posted his top 10 shell shortcuts (bash, zsh etc) . I only knew a few of these, they could save me some keyboard [...]</description>
		<content:encoded><![CDATA[<p>[...] Lamb posted his top 10 shell shortcuts (bash, zsh etc) . I only knew a few of these, they could save me some keyboard [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Eduardo Neves</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9613</link>
		<dc:creator>Paulo Eduardo Neves</dc:creator>
		<pubDate>Tue, 16 Oct 2007 02:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9613</guid>
		<description>Explaining: Everything the shell (BASH) doesn't substitute anything inside single quotes. Try: echo '$HOME' "$HOME"</description>
		<content:encoded><![CDATA[<p>Explaining: Everything the shell (BASH) doesn&#8217;t substitute anything inside single quotes. Try: echo &#8216;$HOME&#8217; &#8220;$HOME&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9601</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 15 Oct 2007 16:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9601</guid>
		<description>Lamby, my bad... Nice article by the way.</description>
		<content:encoded><![CDATA[<p>Lamby, my bad&#8230; Nice article by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Goodwin</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9552</link>
		<dc:creator>David Goodwin</dc:creator>
		<pubDate>Sun, 14 Oct 2007 18:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9552</guid>
		<description>The issue with subversion is fixed in an easier manner by using single quotes...
i.e.

svn ci -m 'This works!' foo.bar</description>
		<content:encoded><![CDATA[<p>The issue with subversion is fixed in an easier manner by using single quotes&#8230;<br />
i.e.</p>
<p>svn ci -m &#8216;This works!&#8217; foo.bar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wildcard</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9514</link>
		<dc:creator>wildcard</dc:creator>
		<pubDate>Sat, 13 Oct 2007 15:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9514</guid>
		<description>@lefty.crupps
"For example, number six makes little sense to me. So does number ten"

I agree that while I already knew of #6, it took me a moment to understand what the author was saying, but in essence it is that say we have the following scenario, you need to edit xorg.conf.
You type:
"nano /etc/X11/xorg.conf"
and hit enter, but instantly remember that you need root privileges to edit the file, so you quit, now the bad way of doing things is to type it all up again, and adding sudo before it (if you are working on a system which uses sudo ofc), the better way would be to type
"sudo !!" 
which is the interpreted as sudo [the last executed command] or 
"sudo nano /etc/X11/xorg.conf"

As for #10, try the following:
create a folder somewhere in your system (like the desktop) or whatever.
Create an empty file outside the folder.
(when I tested this I had a "sandbox" folder and the file "foo" on the desktop.)
then I tried
"mv foo sndbox"
which of course failed since I misspelled sandbox.
The next command I ran then was 
"^sndbox^sandbox"
Talk about kick-ass stuff :D

(Of course all of these commands should be without double quotes)

Hope it helped
cheers :)</description>
		<content:encoded><![CDATA[<p>@lefty.crupps<br />
&#8220;For example, number six makes little sense to me. So does number ten&#8221;</p>
<p>I agree that while I already knew of #6, it took me a moment to understand what the author was saying, but in essence it is that say we have the following scenario, you need to edit xorg.conf.<br />
You type:<br />
&#8220;nano /etc/X11/xorg.conf&#8221;<br />
and hit enter, but instantly remember that you need root privileges to edit the file, so you quit, now the bad way of doing things is to type it all up again, and adding sudo before it (if you are working on a system which uses sudo ofc), the better way would be to type<br />
&#8220;sudo !!&#8221;<br />
which is the interpreted as sudo [the last executed command] or<br />
&#8220;sudo nano /etc/X11/xorg.conf&#8221;</p>
<p>As for #10, try the following:<br />
create a folder somewhere in your system (like the desktop) or whatever.<br />
Create an empty file outside the folder.<br />
(when I tested this I had a &#8220;sandbox&#8221; folder and the file &#8220;foo&#8221; on the desktop.)<br />
then I tried<br />
&#8220;mv foo sndbox&#8221;<br />
which of course failed since I misspelled sandbox.<br />
The next command I ran then was<br />
&#8220;^sndbox^sandbox&#8221;<br />
Talk about kick-ass stuff <img src='http://www.chris-lamb.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>(Of course all of these commands should be without double quotes)</p>
<p>Hope it helped<br />
cheers <img src='http://www.chris-lamb.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lamby</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9479</link>
		<dc:creator>Lamby</dc:creator>
		<pubDate>Fri, 12 Oct 2007 15:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9479</guid>
		<description>@Alexandre: !:0 bar

@Mark: That's the "don't do this" part of number 6.</description>
		<content:encoded><![CDATA[<p>@Alexandre: !:0 bar</p>
<p>@Mark: That&#8217;s the &#8220;don&#8217;t do this&#8221; part of number 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9478</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 12 Oct 2007 15:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9478</guid>
		<description>I'm sorry number 6 and number 9 not 5 and 10...</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry number 6 and number 9 not 5 and 10&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre Franke</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9473</link>
		<dc:creator>Alexandre Franke</dc:creator>
		<pubDate>Fri, 12 Oct 2007 12:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9473</guid>
		<description>How would you repeat the same command with a different argument?
For instance, how would you type:
mkdir foo
mkdir bar</description>
		<content:encoded><![CDATA[<p>How would you repeat the same command with a different argument?<br />
For instance, how would you type:<br />
mkdir foo<br />
mkdir bar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lamby</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9456</link>
		<dc:creator>Lamby</dc:creator>
		<pubDate>Thu, 11 Oct 2007 20:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9456</guid>
		<description>@Mark: Um, wut? Where do I say to use the Home key. And my suggestion re. history does that too.</description>
		<content:encoded><![CDATA[<p>@Mark: Um, wut? Where do I say to use the Home key. And my suggestion re. history does that too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9455</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 11 Oct 2007 20:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/#comment-9455</guid>
		<description>You say to use home to get to the front of the line in step 5, then say NOT to use it in step 10.

Also the reason people grep &#124; history is to see the different ways they used a command like, "history &#124; grep mount" will show you what you mounted recently.</description>
		<content:encoded><![CDATA[<p>You say to use home to get to the front of the line in step 5, then say NOT to use it in step 10.</p>
<p>Also the reason people grep | history is to see the different ways they used a command like, &#8220;history | grep mount&#8221; will show you what you mounted recently.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
