title: How can I escape arguments passed in bash script command line
body: <p>I have one variable, which is coming from some where like:</p>
  
  <pre><code>VAR1='hhgfhfghhgf"";2Ddgfsaj!!!$#^$\'&amp;%*%~*)_)(_{}||\\/'
  </code></pre>
  
  <p>Now i have command like this</p>
  
  <pre><code>./myscript.sh '$VAR1'
  </code></pre>
  
  <p>I am getting that $VAR1 from some diff process and when I display it look exactly as its above.</p>
  
  <p>Now that command is failing as there is already single quote inside variable. In the process where I use it it is expanded at that point, which causes that error.</p>
  
  <p>I have control over myscript.sh but not above command.</p>
  
  <p>Is there any way I can get variable inside my script?</p>