Not all systems have bash as /bin/bash. A shebang line of '#!/usr/bin/env bash' would be even more portable.
I think `/usr/bin/env bash` is a great shebang, for the record, but I'm not totally convinced that it's more portable than `/bin/bash`. Can you explain what makes it actually more portable? In absence of that, you might actually expect `/bin/bash` to be more portable, as at least you can more likely make assumptions based on the OS.
POSIX. The NixOS machine I'm typing this on has /usr/bin/env but not /bin/bash.
typical GNU/Linux: /bin/bash
FreeBSD, NetBSD, OpenBSD: /usr/local/bin/bash
Solaris, Illumos, OpenIndiana, SmartOS, etc.: /usr/bin/bash
macOS: /bin/bash
NixOS, GuixSD†: /run/current-system/sw/bin/bash
but all of these operating systems have a standards-compliant `env` installed at `/usr/bin/env`.— †: GuixSD may have slightly tweaked the structure of their profiles; I'm not sure if it's at `.../sw/bin` or it's something else after the ...