<?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: Superfluous subshelling</title>
	<atom:link href="http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/</link>
	<description>Technical musings of an entrepreneur.</description>
	<lastBuildDate>Mon, 03 May 2010 16:57:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MrKane</title>
		<link>http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/comment-page-1/#comment-374</link>
		<dc:creator>MrKane</dc:creator>
		<pubDate>Tue, 16 Feb 2010 10:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/#comment-374</guid>
		<description>Hello, nice linux related posts going on here :)

I&#039;ve always put inverted commas around the list part and the variable, like so:

#!/bin/bash

for I in &quot;$( ls -rt *.sh )&quot;
do
 echo &quot;$I&quot;
done

[user@server ~]$ for I in &quot;$( ls -rt *.txt )&quot; ; do echo &quot;$I&quot;; done
fileone.txt
filetwo.txt
file three.txt

I wasn&#039;t aware of the file globbing properties of &quot;for&quot;; thanks for that :)

Take &#039;er easy,

MrKane

ps. I distrust backquotes, and so use &quot;$()&quot; instead :P</description>
		<content:encoded><![CDATA[<p>Hello, nice linux related posts going on here <img src='http://www.briandowney.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve always put inverted commas around the list part and the variable, like so:</p>
<p>#!/bin/bash</p>
<p>for I in &#8220;$( ls -rt *.sh )&#8221;<br />
do<br />
 echo &#8220;$I&#8221;<br />
done</p>
<p>[user@server ~]$ for I in &#8220;$( ls -rt *.txt )&#8221; ; do echo &#8220;$I&#8221;; done<br />
fileone.txt<br />
filetwo.txt<br />
file three.txt</p>
<p>I wasn&#8217;t aware of the file globbing properties of &#8220;for&#8221;; thanks for that <img src='http://www.briandowney.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Take &#8216;er easy,</p>
<p>MrKane</p>
<p>ps. I distrust backquotes, and so use &#8220;$()&#8221; instead <img src='http://www.briandowney.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: *nix Fan</title>
		<link>http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/comment-page-1/#comment-305</link>
		<dc:creator>*nix Fan</dc:creator>
		<pubDate>Fri, 15 Feb 2008 15:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.briandowney.net/blog/2008/02/14/superfluous-subshelling/#comment-305</guid>
		<description>I uncovered the differences between &#039;for&#039; and the &#039;while-read-do&#039; loop while writing a script some time ago. Caused me a lot of heartburn! Happy Globbing!</description>
		<content:encoded><![CDATA[<p>I uncovered the differences between &#8216;for&#8217; and the &#8216;while-read-do&#8217; loop while writing a script some time ago. Caused me a lot of heartburn! Happy Globbing!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
