I am using MacOs Mojave, and I figured that the env binary sits under /usr/bin/env. Now we have a bunch of shell scripts (written and working under linux) that have /bin/env hardcoded for the shebang line.
I thought a simple:
cd /bin
sudo ln -s /usr/bin/env env
or maybe
sudo cp /usr/bin/env .
should do the trick, but I get:
ln: env: Operation not permitted
(same for cp).
Any idea how to fix this?