shells/bash port, add a knob which symlinks to /bin/bash ?

Daniel Eischen deischen at freebsd.org
Fri Sep 12 22:16:32 UTC 2014


On Fri, 12 Sep 2014, Rang, Anton wrote:

>> If you want interoperability just use /usr/bin/env bash as a shebang.
>
> That doesn't work for this use case -- the user shell coming from LDAP 
> -- but I agree that the port shouldn't be modifying /usr/bin.
>
> It's easy enough to add the symlink manually after installing the port 
> if you're in this situation, or there may be a way to configure the 
> LDAP module to map /bin/bash to /usr/local/bin/bash (I haven't looked 
> to see what is supported here).

We have used LDAP on Solaris for years, and have mixed environments
of Solaris, Linux, and FreeBSD.  We use /usr/local/bin/bash in LDAP
for shells, then either link that to the system /bin/bash or install
more up-to-date bash in /usr/local/bin.  This way you can always
install a more up-to-date shell in /usr/local/bin without changing
the base OS - you don't want base OS shell scripts to break by
updating to a newer shell.

-- 
DE


More information about the freebsd-ports mailing list