Article 56FND BASH question regarding scripts and exit 0

BASH question regarding scripts and exit 0

by
L_Carver
from LinuxQuestions.org on (#56FND)
Can one add "exit 0" to the end of a script to make it terminate the shell running that script?

I have seen this answered before, but I doubt either Google or DDG has a substantial answer.

Carverlatest?d=yIl2AUoC8zA latest?i=MkRNfQ16gcs:HzACFY7Xx5A:F7zBnMy latest?i=MkRNfQ16gcs:HzACFY7Xx5A:V_sGLiP latest?d=qj6IDK7rITs latest?i=MkRNfQ16gcs:HzACFY7Xx5A:gIN9vFwMkRNfQ16gcs
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