<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">So a usage issue? No significant performance degradation if the calling script is already sourcing other files?</div><div class="gmail_quote"><br></div><div class="gmail_quote">I'm looking at multiple scripts each at 30+ pages of code and trying to figure out how to explain why smaller and less complex can be better. </div><div class="gmail_quote"><br></div><div class="gmail_quote">And explain it without cussing...</div><div class="gmail_quote"><br></div><div class="gmail_quote">Leam</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, May 24, 2017 at 11:29 AM, James Sumners <span dir="ltr"><<a href="mailto:james.sumners@gmail.com" target="_blank">james.sumners@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Scope. While Bash doesn't have any concept of a closure, it is sometimes helpful to know that the internally defined function is meant to only be used locally within that parent function.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 24, 2017 at 11:22 AM, leam hall <span dir="ltr"><<a href="mailto:leamhall@gmail.com" target="_blank">leamhall@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I see people do this and I'm not sure why. Is there any technical advantage to defining a function inside another, assuming it could be defined outside and used inside?<div><br></div><div>Thanks!</div><span class="m_-954435868740566451HOEnZb"><font color="#888888"><div><br></div><div>Leam</div></font></span></div>
</div></div></blockquote></div></div></blockquote></div><br></div></div>