title: How to echo a variable containing an unescaped dollar sign in bash
body: <p>If I have a variable containing an unescaped dollar sign, is there any way I can echo the entire contents of the variable?</p>
  
  <p>For example something calls a script:</p>
  
  <p><code>./script.sh "test1$test2"</code></p>
  
  <p>and then if I want to use the parameter it gets "truncated" like so:</p>
  
  <p><code>echo ${1}<br>
  test1</code></p>
  
  <p>Of course single-quoting the varaible name doesn't help.  I can't figure out how to quote it so that I can at least escape the dollar sign myself once the script recieves the parameter.</p>