Will there be any difference or it\'s just a personal choice?
#!
tries to run
to read and run the rest of the file.
So #!/usr/bin/env
means that there must be a program called /usr/bin/env
;
#!/bin/env
means that there must be a program called /bin/env
.
Some systems have one and not the other.
In my experience, most have /usr/bin/env
, so #!/usr/bin/env
is more common.
Unix systems will try to run
using execve
, which is why it must be a full path, and #!env
without a path will not work.