title: How to escape single quotes within single quoted strings
body: <p>Let's say, you have a Bash <code>alias</code> like:</p>
  
  <pre><code>alias rxvt='urxvt'
  </code></pre>
  
  <p>which works fine.</p>
  
  <p>However:</p>
  
  <pre class="lang-none prettyprint-override"><code>alias rxvt='urxvt -fg '#111111' -bg '#111111''
  </code></pre>
  
  <p>won't work, and neither will:</p>
  
  <pre><code>alias rxvt='urxvt -fg \'#111111\' -bg \'#111111\''
  </code></pre>
  
  <p>So how do you end up matching up opening and closing quotes inside a string once you have escaped quotes?</p>
  
  <pre><code>alias rxvt='urxvt -fg'\''#111111'\'' -bg '\''#111111'\''
  </code></pre>
  
  <p>seems ungainly although it would represent the same string if you're allowed to concatenate them like that.</p>