I have a bash script and I want to run commands like these.
First-Command \
&& exec bash \
&& Last-Command
The exec bash will throw a error in the above way. ^^
If I write like this:
First-Command;
exec bash;
Last-Command
This way is not suitable for me because I want to run exec bash only after First-Command has completed.
Is there a work around of this scenario?
Can we connect some editor application to a terminal and submit commands to the terminal through that editor application.
Thank You. Regards, Yusuf
;to run it unconditionally after the bash finishes. Semicolon-separated commands run in turn, each one starting after the one before it has finished.