title: bash find -exec sometimes works and sometimes doesn't
body: <p>I'm probably missing something, but this oneliner in a bash-script to cycle through some scripts that dump data from different sources:</p>
  
  <pre><code>find . -name 'dump-*.sh' -exec {} "$DUMP_LOG" &amp;&gt;&gt;"$DUMP_LOG" \;
  </code></pre>
  
  <p>will work when I execute the bash-script containing this oneliner directly, but it doesn't work when I invoke it as the cmd_preexec in rsnapshot. It doesn't spawn any errors, it just doesn't do anything.</p>
  
  <p>I tried adding '(/bin/)bash -c', like this:</p>
  
  <pre><code>find . -name 'dump-*.sh' -exec bash -c '{} "$DUMP_LOG" &amp;&gt;&gt;"$DUMP_LOG"' \;
  </code></pre>
  
  <p>but then I get an error about '(/bin/)bash not existing, even if  Irun the script directly.</p>