title: postgresql: .pgpass not working
body: <p>I have created a <code>.pgpass</code> file in my home directory which looks like this</p>
  
  <p><code>localhost:5432:somedb:someuser:somepass</code></p>
  
  <p>I am using a shell script which creates a directory and puts a pg_dump of <code>somedb</code> there :</p>
  
  <pre><code>mkdir directory
  pg_dump somedb &gt; directory/somefile.dump
  </code></pre>
  
  <p>It still prompts for the password.</p>
  
  <p>Where is the mistake here ?</p>