title: How to redirect output in a task in nimble
body: <p>If I have this task in a nimble file:</p>
  <pre><code>task readme, &quot;generate README.md&quot;:
    exec &quot;nim c -r readme.nim &gt; README.md&quot;
  </code></pre>
  <p>with this <code>readme.nim</code>:</p>
  <pre><code>echo &quot;# Hello\nworld&quot;
  </code></pre>
  <p>executing task with nimble (<code>nimble readme</code>) does not redirect the output of readme.nim to file.
  As expected running <code>nim c -r readme.nim &gt; README.md</code> from terminal correctly creates/updates <code>README.md</code>.</p>
  <p>Is this intended behaviour of nimble? is there a workaround?</p>
  <p><strong>note</strong>: the above was tested on windows.</p>