2 ms·
>NixOS just makes the correct tradeoff here for `env` to be able to perform one of its main functions by putting it in a conventional location. At that point y
by charcircuit 3y ago
>NixOS just makes the correct tradeoff here for `env` to be able to perform one of its main functions by putting it in a conventional location.
At that point you might as well do the same for sh and bash as it would also save a lot of unnecessary headache. Shebangs are not a necessary part of a distro. You can always call the interpreter directly and pass in the script.
I personally find the idea of disrupting the normal FHS for purity to be a cool idea, but if you are going to ignore that goal and compromise to increase compatibility with existing scripts I feel you might as well compromise that purity more to support bash as that will solve the users of the OS even more problems.
>What if I don't want to use the system bash (ever) because it's old?
When you are sharing a bash script with others you typically aren't going to want to use bleeding edge features. I don't see that as a big problem. For your own scripts you can always use the full path to whatever version you want.