title: fork and exec in bash
body: <p>How do I implement fork and exec in bash?</p>
  
  <p>Let us suppose script as</p>
  
  <pre><code>echo "Script starts"
  
  function_to_fork(){
  sleep 5
  echo "Hello"
  }
  
  echo "Script ends"
  </code></pre>
  
  <p>Basically I want that function to be called as new process like in C we use fork and exec calls..</p>
  
  <p>From the script it is expected that the parent script will end and then after 5 seconds, "Hello" is printed.</p>