4 ms·
Why are those scripts running in interactive login shells? If they are influenced by the configuration of profile, then the scripts are bad.
by RadiozRadioz 9mo ago
Why are those scripts running in interactive login shells? If they are influenced by the configuration of profile, then the scripts are bad.
- wasmainiac 9mo agoThat’s true, but I would still call overloading system binaries bad practice. Your making yourself foot gun.
- mathfailure 9mo agoNo, in fact he is correct: system scripts won't pick up your overrides configured via your shell's rc scripts.
- wasmainiac 9mo agoI said he was right, but in your case you are wrong. Your shell loads thr profile script for login shells, but will load your bashrc regardless of login or not Excluding this argument, overloading system commands is still bad practice lol. Have you ever logged into an embedded device and had a busy box environment? the behaviour of some utilities can be different from what you expect for utilities of the same name.