<?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: BASH: Single-quotes inside of single-quoted strings</title>
	<atom:link href="http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/</link>
	<description>the personal blog of Stuart Colville covering modern web development techniques and best practices</description>
	<lastBuildDate>Wed, 10 Mar 2010 11:00:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cos</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-65503</link>
		<dc:creator>cos</dc:creator>
		<pubDate>Sat, 23 Jan 2010 12:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-65503</guid>
		<description>Thanks, i used it for generating a web page where i had problems with enclosed &quot;&#039;&#039;&quot; part. It is also a logic &quot;rule&quot; so, easy to remember :)</description>
		<content:encoded><![CDATA[<p>Thanks, i used it for generating a web page where i had problems with enclosed &#8220;&#8221;&#8221; part. It is also a logic &#8220;rule&#8221; so, easy to remember <img src='http://muffinresearch.co.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mm22</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-65330</link>
		<dc:creator>mm22</dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-65330</guid>
		<description>This was exactly what I needed to get my script working the way I expected.  Many thanks!
mm22</description>
		<content:encoded><![CDATA[<p>This was exactly what I needed to get my script working the way I expected.  Many thanks!<br />
mm22</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Rodgers &#187; Blog Archive &#187; Escape single quotes in bash</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-65325</link>
		<dc:creator>Chris Rodgers &#187; Blog Archive &#187; Escape single quotes in bash</dc:creator>
		<pubDate>Mon, 14 Sep 2009 20:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-65325</guid>
		<description>[...] helpful instructions on Stuart Colville&#8217;s blog explain how to do [...]</description>
		<content:encoded><![CDATA[<p>[...] helpful instructions on Stuart Colville&#8217;s blog explain how to do [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-65304</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 25 Aug 2009 02:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-65304</guid>
		<description>Wow!  This is exactly the problem I had, and a perfect solution.  Great post!</description>
		<content:encoded><![CDATA[<p>Wow!  This is exactly the problem I had, and a perfect solution.  Great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun Krislock</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-65093</link>
		<dc:creator>Shaun Krislock</dc:creator>
		<pubDate>Wed, 10 Jun 2009 00:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-65093</guid>
		<description>Thanks so much for posting this easy to understand solution</description>
		<content:encoded><![CDATA[<p>Thanks so much for posting this easy to understand solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bruce</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-64927</link>
		<dc:creator>bruce</dc:creator>
		<pubDate>Wed, 11 Feb 2009 21:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-64927</guid>
		<description>thanks. also for bash alias. \&#039; didn&#039;t work for me. suspect specialized parse around $x variables.</description>
		<content:encoded><![CDATA[<p>thanks. also for bash alias. \&#8217; didn&#8217;t work for me. suspect specialized parse around $x variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-64552</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 18 Aug 2008 16:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-64552</guid>
		<description>So if you have a string that you&#039;re cleaning up, say in python:

str.replace(&quot;&#039;&quot;,&quot;&#039;\\&#039;&#039;&quot;)

first &#039; - end single quoted string
\\ - literal backslash
&#039; - single quote to be backslashed
&#039; - resume single quoted string

Thanks!</description>
		<content:encoded><![CDATA[<p>So if you have a string that you&#8217;re cleaning up, say in python:</p>
<p>str.replace(&#8220;&#8216;&#8221;,&#8221;&#8216;\\&#8221;&#8221;)</p>
<p>first &#8216; &#8211; end single quoted string<br />
\\ &#8211; literal backslash<br />
&#8216; &#8211; single quote to be backslashed<br />
&#8216; &#8211; resume single quoted string</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arif</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-64516</link>
		<dc:creator>Arif</dc:creator>
		<pubDate>Thu, 31 Jul 2008 09:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-64516</guid>
		<description>Worked perfectly! Digging it!</description>
		<content:encoded><![CDATA[<p>Worked perfectly! Digging it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-63849</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Sun, 06 Jan 2008 15:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-63849</guid>
		<description>Bingo! It works! Thanks.
I needed it to use awk inside an alias.</description>
		<content:encoded><![CDATA[<p>Bingo! It works! Thanks.<br />
I needed it to use awk inside an alias.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poor Yorick</title>
		<link>http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/comment-page-1/#comment-63320</link>
		<dc:creator>Poor Yorick</dc:creator>
		<pubDate>Tue, 09 Oct 2007 15:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/archives/2007/01/30/bash-single-quotes-inside-of-single-quoted-strings/#comment-63320</guid>
		<description>It is documented in my version of the man page, dated 2002 July 15, in the section called QUOTING:

Words of the form &lt;code&gt;$&#039;string&#039;&lt;/code&gt; are treated specially...

&lt;code&gt;\&#039;&lt;/code&gt;     single quote</description>
		<content:encoded><![CDATA[<p>It is documented in my version of the man page, dated 2002 July 15, in the section called QUOTING:</p>
<p>Words of the form <code>$'string'</code> are treated specially&#8230;</p>
<p><code>\'</code>     single quote</p>
]]></content:encoded>
	</item>
</channel>
</rss>
