Startup Sequences of Shells

by onosendaion 8/9/2017, 7:10 PMwith 6 comments

by eddygon 8/13/2017, 11:57 PM

http://blog.flowblok.id.au/static/images/shell-startup-actua...

"To read it, pick your shell, whether it's a login shell, whether it's interactive, and follow the same colour through the diagram. When the arrows split out to multiple files, it means that the shell will try to read each one in turn (working left to right), and will use the first one it can read."

Note that what the man pages say happens (as of 2013) is in this diagram:

http://blog.flowblok.id.au/static/images/shell-startup.png

by jsjohnston 8/9/2017, 8:31 PM

I thought maybe this just had a bad UI layout on mobile, but after reviewing on desktop browser, I now know that this useful info was just presented rather poorly.

by skywhopperon 8/9/2017, 10:28 PM

Bash is broken in this regard, having no way to reliably enforce a consistent baseline across the four possible startup modes except by having all the possible startup files explicitly call some shared source. Glad to see zsh has addressed this.

by sgs1370on 8/10/2017, 1:09 AM

thanks for this - very useful