title: Escaping dollar sign in sh -c
body: <p>I am working with an application that runs commands in bash. This is the "template" it is using:</p>
  
  <pre><code>sh -c '&lt;command&gt; "&lt;argument&gt;"'
  </code></pre>
  
  <p>Please note that I cannot edit the quotes, only thing I can edit is the command and argument. I cannot escape the dollar sign either.</p>
  
  <p>This "template" works fine unless there is a dollar sign in the argument:</p>
  
  <pre><code>sh -c 'echo "x=test$test"'
  </code></pre>
  
  <p>gives the following output:</p>
  
  <pre><code>x=test
  </code></pre>
  
  <p>How can I get the exact output, which is:</p>
  
  <pre><code>x=test$test
  </code></pre>
  
  <p>I could do this if I could switch the quotes:</p>
  
  <pre><code>sh -c "echo '"'x=test$test'"'"
  x=test$test
  </code></pre>
  
  <p>Any way to accomplish this?</p>