For example, why is
often preferable to
when writing bash scripts?
Because 'env' will load the environment variables before execution.
Because usage of the "env" utility will search for the executable on the path instead of relying upon it being available in the /usr/bin directory, hence making the script more portable.
It's more likely for *nix distributions to have env in the /usr/bin directory than some other common executables like bash or python.
Answers are hidden from search engines.