title: linux (bash) screen with backgrounded process
body: <p>With a clean working directory if I start the detached screen as follows</p>
  
  <pre><code>screen -dm bash -c "echo a&gt;A; echo b&gt;B;"
  </code></pre>
  
  <p>then my file A is created and contains content. (As is my file B).</p>
  
  <p>With the same clean working directory if the first command is backgrounded</p>
  
  <pre><code>screen -dm bash -c "echo a&gt;A&amp;; echo b&gt;B;" # note the &amp; after a&gt;A
  </code></pre>
  
  <p>then no files have content. Why is this so?</p>
  
  <p>What I want to do is replace "echo a>A" with some long running process and store it's PID with the second echo. This is failing.</p>