<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 15, 2015, at 09:15, Jeff Frontz &lt;<a href="mailto:jeff.frontz@gmail.com" class="">jeff.frontz@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, May 15, 2015 at 9:32 AM, Rick Hornsby <span dir="ltr" class="">&lt;<a href="mailto:richardjhornsby@gmail.com" target="_blank" class="">richardjhornsby@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yep.&nbsp; 'exit' (watch your case, probably just DYAC here) inside a script will stop the script, it will not close the terminal</blockquote></div><br class="">Be careful of how you're actually executing that script -- if it's dotted/sourced, it will cause the including shell to exit.</div></div></div></blockquote><div><br class=""></div><div>Good point - I forgot about that use case.</div><div><br class=""></div><div><div>. some_script.sh</div><div>source some_script.sh</div></div><div><br class=""></div><div>A few years back, I had a UNIX admin from another team pull a bonehead move and put an exit statement into /etc/profile while he was "testing" something on one of our boxes. &nbsp;He then forgot about it. &nbsp;We realized there was a serious issue when no one could log in. &nbsp;Fortunately one of my engineers was still logged into the box so we were able to fix it.</div><div><br class=""></div><div><br class=""></div></div></body></html>