3 ms·
The install path of the `env` executable varies less across operating systems than the install path of the `bash` executable. Some `bash` installation paths by
by pxc 5y ago
The install path of the `env` executable varies less across operating systems than the install path of the `bash` executable. Some `bash` installation paths by operating system:
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 ...