title: Execution of shell stops after the first subshell
body: <p>mainshell.sh</p>
  
  <pre><code>#!/bin/bash
  export subshell1="subshell1.sh"
  export subshell2="subshell2.sh"
  exec ./$subshell1
  exec ./$subshell2
  </code></pre>
  
  <p>subshell1.sh</p>
  
  <pre><code>#!/bin/bash
  echo "this is subshell 1"
  </code></pre>
  
  <p>subshell2.sh</p>
  
  <pre><code>#!/bin/bash
  echo "this is subshell 2"
  </code></pre>
  
  <p>But when I run mainshell.sh on Ubuntu 18.04, I get:</p>
  
  <pre><code>this is subshell 1
  </code></pre>
  
  <p>I looked around for a couple of hours on Stackooverflow for a couple of hours, but could not find any guidance, what I could find was mostly for running a single subshell. Any ideas?</p>