title: /bin/sh: Syntax error: Unterminated quoted string
body: <p>I am trying to get a cronjob to pipe output into a dated file in a specified (folder) location.</p>
  
  <p>My crontab entry looks something like this:</p>
  
  <pre><code>* * * * * /some/path/test.sh &gt;&gt; $(date "+/home/oompah/logs/%Y%m%d.test.log")
  </code></pre>
  
  <p>What I don't understand is that when I type this command at the console, I get the correct string:</p>
  
  <pre><code>echo $(date "+/home/oompah/logs/%Y%m%d.test.log")
  /home/oompah/logs/20110329.test.log
  </code></pre>
  
  <p>What's causing this error and how may I fix it?</p>
  
  <p>bash version info is:</p>
  
  <p>GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)</p>