title: How to run exec bash command from the bash script in Linux (ubuntu)?
body: <p>I have a bash script and I want to run commands like these.</p>
  
  <pre><code>First-Command \
  &amp;&amp; exec bash \
  &amp;&amp; Last-Command
  </code></pre>
  
  <p>The exec bash will throw a error in the above way. ^^</p>
  
  <p>If I write like this:</p>
  
  <pre><code>First-Command;
  exec bash;
  Last-Command
  </code></pre>
  
  <p>This way is not suitable for me because I want to run exec bash only after First-Command has completed.</p>
  
  <p>Is there a work around of this scenario?</p>
  
  <p>Can we connect some editor application to a terminal and submit commands to the terminal through that editor application.</p>
  
  <p>Thank You.
  Regards,
  Yusuf</p>