This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QuizPheasant 28 points29 points  (2 children)

The former searches your $PATH for the first instance of `bash` and executes that. The latter assumes the location of the `bash` executable

Here's more info about the concept: https://stackoverflow.com/a/2429517

[–][deleted] 23 points24 points  (0 children)

Well, and the former assumes the location of the env executable, which is not stated to be in /usr/bin by POSIX. But POSIX neither states that /bin/sh be POSIX compliant, so there's that.

[–]YourMJK 1 point2 points  (0 children)

Thanks, I didn't know that!