Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2014 23:40:04 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@freebsd.org>
Cc:        freebsd-current Current <freebsd-current@freebsd.org>, Emanuel Haupt <ehaupt@freebsd.org>, ports <freebsd-ports@freebsd.org>
Subject:   Re: shells/bash port, add a knob which symlinks to /bin/bash ?
Message-ID:  <20140912214004.GT6096@ivaldir.etoilebsd.net>
In-Reply-To: <CAG=rPVf5z4c6aheCngKy1g-iH8HexAWGQfHoSbtU9D1UC0Pbpg@mail.gmail.com>
References:  <CAG=rPVf5z4c6aheCngKy1g-iH8HexAWGQfHoSbtU9D1UC0Pbpg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--uWCTLymdFNG0vGYZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 12, 2014 at 02:12:45PM -0700, Craig Rodrigues wrote:
> Hi,
>=20
> In the last 3 jobs that I have worked at, there have been
> a mix of Linux machines and FreeBSD machines.
> When using an NIS or LDAP environment where
> there is a single login across multiple machines, it is useful to
> have a single shell setting.
>=20
> Since Linux and MacOS X have "/bin/bash" as the shell,
> in order to get the FreeBSD boxes to play in this environment,
> I have seen admins do the following on FreeBSD setups:
>    ln -s /usr/local/bin/bash /bin/bash
>=20
> or
>=20
>    ln /usr/local/bin/bash /bin/bash
>=20
> and then make sure that /etc/shells as:
> /usr/local/bin/bash
> /bin/bash
>=20
> Can we add an optional knob (turned off by default) which creates this
> symlink
> and updates /etc/shells?
>=20
> This would help with interoperability of FreeBSD hosts in environments mi=
xed
> with Linux and MacOS X.
>=20

Please no, no and no!

We are fighting for a very long time to prevent the ports to pollute base.

We have added the shebangfix USES to be able to catch with up with cleanup =
this
properly as well as a qa test to discover it automatically.

no interpreters at all have a symlink in base but perl and this one is goin=
g to
be removed.

If you want interoperability just use /usr/bin/env bash as a shebang. Btw y=
ou
cannot get interoprability with OS-X in there because the bash they do prov=
ide
is the last GPL-2 recent bash have many incompatiblities with this old vers=
ion.

regards,
Bapt

--uWCTLymdFNG0vGYZ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlQTaDQACgkQ8kTtMUmk6EzmwwCfWF5BSfz6bt5fSCl5LLQBrq9a
v4kAn3nBv0oc40nBTHESWTV7A6iGalb+
=x3Ob
-----END PGP SIGNATURE-----

--uWCTLymdFNG0vGYZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140912214004.GT6096>