title: PostgreSQL unterminated quoted identifier
body: <p>I have this groovy code which drops a remote postgres schema from commandline:</p>
  
  <pre><code>def dropSchema = "psql --dbname=postgres://$user:$pass@localhost:$port/$targetDb -c \"DROP SCHEMA ${applicationName}_${uid} CASCADE;\"".execute()
  </code></pre>
  
  <p>This code is working fine when it's run on a windows machine, but when it's on a Linux distribution, it gives me these errors:</p>
  
  <blockquote>
    <p>psql: warning: extra command-line argument "appName_uid" ignored</p>
    
    <p>psql: warning: extra command-line argument "CASCADE;"" ignored</p>
    
    <p>ERROR:  unterminated quoted identifier at or near ""DROP"</p>
    
    <p>LINE 1: "DROP
            ^</p>
  </blockquote>
  
  <p>Does anyone know how to fix this ?</p>
  
  <p>Thanks.</p>