Bash shebang

Note that /bin/bash isn’t guaranteed to exist, even if Bash is installed. /usr/bin/env is guaranteed to exist on POSIX systems, so /usr/bin/env bash is the generally recommended way to invoke it in a shebang. /bin/sh is guaranteed to exist on a POSIX system, but /usr/bin/env sh can be used for consistency.

Yeah, that’s what I noticed.

••• Software Scripting

Reply by Email