22 Feb
2006
22 Feb
'06
01:46
Carlos E. R. wrote:
I see it does have the secondary efect of loading a second bash shell, and that's why it get listed in the output. There must be a better way to tell it to reuse the same shell than removing that line.
How exactly are you determining this? The only way to get the shell script to execute in the current shell is to source it. Either . <script> or source <script> Anything else will cause bash to spawn a subshell for it The #! line needs to be there if you want your script to be executed in anything other than the shell you're currently using, so to be on the safe side it's a good thing to include