
It’s always a bit confusing to reason about which startup files bash
(1) is going to run in a given situation. It is documented, but the logic is not trivial.
So I made a chart (using PlantUML!). You’re welcome.
EDIT: There is also one for zsh
(1) (PlantUML).
The main takeaway from this exercise is:
Continue readingIn
sh
mode,bash
andzsh
do slightly different things.