Article 52DV1 bash: source a file: how to end early?

bash: source a file: how to end early?

by
Skaperen
from LinuxQuestions.org on (#52DV1)
in a script, when conditions are found to not be suitable to running the remainder of the script, it is easy to deal with ... just exit. but when bash is sourcing a file of commands, this does not work. doing exit causes the shell to exit. i just need to abort sourcing the remainder of this file. does anyone know a way for bash to do this?latest?d=yIl2AUoC8zA latest?i=G6xWA0qw2G8:EnMGsFih8wU:F7zBnMy latest?i=G6xWA0qw2G8:EnMGsFih8wU:V_sGLiP latest?d=qj6IDK7rITs latest?i=G6xWA0qw2G8:EnMGsFih8wU:gIN9vFwG6xWA0qw2G8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments