<?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: cd up, up, and a-up</title>
	<atom:link href="http://blog.jerodsanto.net/2009/09/cd-up-up-up/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/</link>
	<description>with Jerod Santo</description>
	<lastBuildDate>Mon, 26 Jul 2010 03:23:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jerod Santo</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-395</link>
		<dc:creator>Jerod Santo</dc:creator>
		<pubDate>Wed, 09 Sep 2009 02:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-395</guid>
		<description>So you&#039;re accessing a subset of $1. That makes sense.&lt;br&gt;&lt;br&gt;Your function works great in every situation except when you don&#039;t pass any args to cd at all. In this case, it fails. I added a check for that case and updated the function in the post. Let me know if it can be further improved.&lt;br&gt;&lt;br&gt;Thanks!</description>
		<content:encoded><![CDATA[<p>So you&#39;re accessing a subset of $1. That makes sense.</p>
<p>Your function works great in every situation except when you don&#39;t pass any args to cd at all. In this case, it fails. I added a check for that case and updated the function in the post. Let me know if it can be further improved.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: someguy</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-394</link>
		<dc:creator>someguy</dc:creator>
		<pubDate>Tue, 08 Sep 2009 23:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-394</guid>
		<description>${foo:x:y} == foo[x:y] in Python.</description>
		<content:encoded><![CDATA[<p>${foo:x:y} == foo[x:y] in Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerod Santo</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-393</link>
		<dc:creator>Jerod Santo</dc:creator>
		<pubDate>Tue, 08 Sep 2009 20:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-393</guid>
		<description>You&#039;re absolutely right, my function doesn&#039;t handle spaces in pathnames at all. I&#039;ll give yours a try and if it works as advertised I&#039;ll be using it instead, thanks!&lt;br&gt;&lt;br&gt;I&#039;m not familiar with:&lt;br&gt;&lt;br&gt;${1:0:2}&lt;br&gt;&lt;br&gt;What does that mean?</description>
		<content:encoded><![CDATA[<p>You&#39;re absolutely right, my function doesn&#39;t handle spaces in pathnames at all. I&#39;ll give yours a try and if it works as advertised I&#39;ll be using it instead, thanks!</p>
<p>I&#39;m not familiar with:</p>
<p>${1:0:2}</p>
<p>What does that mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: someguy</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-392</link>
		<dc:creator>someguy</dc:creator>
		<pubDate>Tue, 08 Sep 2009 20:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-392</guid>
		<description>This seems unnecessarily complicated. It&#039;s also not safe for pathnames with spaces or other shellcandy. Try:&lt;br&gt;&lt;br&gt;function cd () {&lt;br&gt;    if [ ${1:0:2} == &#039;..&#039; ]; then&lt;br&gt;        rest=${1:2}&lt;br&gt;        rest=${rest//./../}&lt;br&gt;        builtin cd &quot;${1:0:2}/${rest}&quot;&lt;br&gt;    else&lt;br&gt;        builtin cd &quot;$1&quot;;&lt;br&gt;    fi&lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>This seems unnecessarily complicated. It&#39;s also not safe for pathnames with spaces or other shellcandy. Try:</p>
<p>function cd () {<br />    if [ ${1:0:2} == &#39;..&#39; ]; then<br />        rest=${1:2}<br />        rest=${rest//./../}<br />        builtin cd &#8220;${1:0:2}/${rest}&#8221;<br />    else<br />        builtin cd &#8220;$1&#8243;;<br />    fi<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sant0sk1</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-331</link>
		<dc:creator>sant0sk1</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-331</guid>
		<description>So you&#039;re accessing a subset of $1. That makes sense.&lt;br&gt;&lt;br&gt;Your function works great in every situation except when you don&#039;t pass any args to cd at all. In this case, it fails. I added a check for that case and updated the function in the post. Let me know if it can be further improved.&lt;br&gt;&lt;br&gt;Thanks!</description>
		<content:encoded><![CDATA[<p>So you&#39;re accessing a subset of $1. That makes sense.</p>
<p>Your function works great in every situation except when you don&#39;t pass any args to cd at all. In this case, it fails. I added a check for that case and updated the function in the post. Let me know if it can be further improved.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: someguy</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-329</link>
		<dc:creator>someguy</dc:creator>
		<pubDate>Tue, 08 Sep 2009 16:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-329</guid>
		<description>${foo:x:y} == foo[x:y] in Python.</description>
		<content:encoded><![CDATA[<p>${foo:x:y} == foo[x:y] in Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sant0sk1</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-328</link>
		<dc:creator>sant0sk1</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-328</guid>
		<description>You&#039;re absolutely right, my function doesn&#039;t handle spaces in pathnames at all. I&#039;ll give yours a try and if it works as advertised I&#039;ll be using it instead, thanks!&lt;br&gt;&lt;br&gt;I&#039;m not familiar with:&lt;br&gt;&lt;br&gt;${1:0:2}&lt;br&gt;&lt;br&gt;What does that mean?</description>
		<content:encoded><![CDATA[<p>You&#39;re absolutely right, my function doesn&#39;t handle spaces in pathnames at all. I&#39;ll give yours a try and if it works as advertised I&#39;ll be using it instead, thanks!</p>
<p>I&#39;m not familiar with:</p>
<p>${1:0:2}</p>
<p>What does that mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: someguy</title>
		<link>http://blog.jerodsanto.net/2009/09/cd-up-up-up/comment-page-1/#comment-327</link>
		<dc:creator>someguy</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=634#comment-327</guid>
		<description>This seems unnecessarily complicated. It&#039;s also not safe for pathnames with spaces or other shellcandy. Try:&lt;br&gt;&lt;br&gt;function cd () {&lt;br&gt;    if [ ${1:0:2} == &#039;..&#039; ]; then&lt;br&gt;        rest=${1:2}&lt;br&gt;        rest=${rest//./../}&lt;br&gt;        builtin cd &quot;${1:0:2}/${rest}&quot;&lt;br&gt;    else&lt;br&gt;        builtin cd &quot;$1&quot;;&lt;br&gt;    fi&lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>This seems unnecessarily complicated. It&#39;s also not safe for pathnames with spaces or other shellcandy. Try:</p>
<p>function cd () {<br />    if [ ${1:0:2} == &#39;..&#39; ]; then<br />        rest=${1:2}<br />        rest=${rest//./../}<br />        builtin cd &#8220;${1:0:2}/${rest}&#8221;<br />    else<br />        builtin cd &#8220;$1&#8243;;<br />    fi<br />}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
