title: Pipe string with newline to command in bash?
body: <p>I am trying to pass in a string containing a newline to a PHP script via BASH. </p>
  
  <pre><code>#!/bin/bash
  
  REPOS="$1"
  REV="$2"
  
  message=$(svnlook log $REPOS -r $REV)
  changed=$(svnlook changed $REPOS -r $REV)
  
  /usr/bin/php -q /home/chad/www/mantis.localhost/scripts/checkin.php &lt;&lt;&lt; "${message}\n${changed}"
  </code></pre>
  
  <p>When I do this, I see the literal "\n" rather than the escaped newline:</p>
  
  <pre><code>blah blah issue 0000002.\nU app/controllers/application_controller.rb
  </code></pre>
  
  <p>Any ideas how to translate '\n' to a literal newline?</p>
  
  <p>By the way: what does &lt;&lt;&lt; do in bash? I know &lt; passes in a file...</p>