What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
Running a command through /usr/bin/env has the benefit of looking for whatever the default version of the program is in your current environment. This way, you don’t have to look for it in a specific place on the system, as those paths may be in different locations on different systems. As long as it’s in your path, it … Read more