4 ms·
I wonder if there is any mainstream program with a more convoluted configuration scheme than bash? Just when think you understand the various invocations of .pr
by em500 3y ago
I wonder if there is any mainstream program with a more convoluted configuration scheme than bash? Just when think you understand the various invocations of .profile, .bash_profile, .bashrc in login/non-login/interactive/non-interactive modes in home and/or /etc after digesting an article with flowcharts[1], you realize that any invocation can execute arbitrary code from any location, and different distributions (not to mention, macOS, WSL, git-for-Windows, etc) all source different stuff in their default configs (like executing .bashrc in .profile).
[1] https://blog.flowblok.id.au/2013-02/shell-startup-scripts.html https://blog.flowblok.id.au/2013-02/shell-startup-scripts.ht...
- nxpnsv 3y agoThat graph is wild! Bash is crrrraazy
- ElevenLathe 3y agoI love this post. Such a crazy diagram for something that intuitively we believe should be simple. You can easily imagine most of the the compromises and feature requests over the years that brought it to this state. All software that survives decades of care and upkeep tends to end up in a similar state.
- hnlmorg 3y agoThis is a why Murex (my shell) has a ‘runtime’ builtin which lets you query which script updates what. Every function, variable etc can be queried to find where they were set and even when (time stamped) too.