Ron Mansolino via plug on 4 May 2023 15:42:27 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] take-your-bash-scripting-seriously


Some notes on cross-platform compatibility (a bit of /bin/sh rant):
https://medium.com/@jesse_62134/take-your-bash-scripting-seriously-198778c68ba5

Mention of the size of the bash binary has me wondering:
If my script loads a few other scripts that expressly declare bash up top, does one interpreter run them all?
(or does each one spawn a new bash process?) 

I got in the habit of not specifying bash unless I have to, if these scripts don't specify bash, do _they_ all run in the same environment?
(I don't 'get' how the environment is passed around and I've been bit by variables that I expected that weren't exported (?)


Tcsh,
Ron
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug