title: how to run shell script command with double quotes in the argument?
body: <p>I need to run this command</p>
  
  <p><code>psql -c "create database $var with encoding 'unicode';" -U edumate template1</code></p>
  
  <p>from the script under different user. The su syntax is <code>su postre -c 'some command'</code> so there are another quotes required. Also please note that the psql command has <code>$var</code> variable inside. </p>
  
  <p>so 'some command' = psql -c "create database $var with encoding 'unicode';" -U edumate template1</p>
  
  <p>and 'some command' must be enclosed in quotes too (I guess)</p>