title: nohup commands from inside shell script are blocking script exeuction
body: <p>I have a shell script like the following which I want to use to execute a series of commands in a non-blocking way, i.e. as soon as one of the commands in the for loop is execute I want the script continue with the next command.</p>
  
  <pre><code>#!/bin/bash
  
  declare -a parameters=("param1" "param2" "param3")
  
  for parameter in "${parameters[@]}"
  do
     command="nohup mycommand -p ${parameter} 1&gt; ${parameter}_nohup.out 2&gt;&amp;1 &amp;" 
     ${command}
  done
  </code></pre>
  
  <p>However, for every command the script blocks until it finishes its execution before continuing to the next iteration of the for loop to execute the next command. Moreover, the output of the command is redirected to <code>nohup.out</code> instead of the filename I specify to log the output. Why is the behavior of nohup different inside a shell script?</p>
  
  <p>My distribution is Debian GNU/Linux 8 (jessie)</p>