From owner-freebsd-ports@FreeBSD.ORG Fri Sep 12 21:40:11 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46EDBB73; Fri, 12 Sep 2014 21:40:11 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 636E1D21; Fri, 12 Sep 2014 21:40:10 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id k48so1357075wev.13 for ; Fri, 12 Sep 2014 14:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=xQJk2SoNiTsxGawWwWh//09pAb/0moDJ7QWI6giacGA=; b=w11lWyVkpnmXfebAiy/jdu3j5kNoh6WN6D+DdTJ7mLkoU+5BDP/dIZJeXm1DI9KsMW SP6oWejOpJyb/flJ2zOVPSdpeK4L8epgExrWF6Ykb0EgyPnHsUjhQLoX0T9OSwK4IcEU vyA1ofZGsvK8zWGs6qC8GW7VbUYBRPTLACo/jV5TAI5wS8mJ4vCb6VWzSX+ktk1lwoQO t9wNxg5Dx2hEK482A/SoGOzWSXWqoCyRO/cr5vH+hEQIfikpd5Fg/XU62hN9/9wRW00Z hOQpsbmndXdxTLbjhjUioa0zmBTN/W79E3dAqYrXXRg4zn6emOfXMA/bqflv5kBBB7ad 3LkQ== X-Received: by 10.180.95.68 with SMTP id di4mr5843075wib.60.1410558007840; Fri, 12 Sep 2014 14:40:07 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id gm2sm2986184wib.15.2014.09.12.14.40.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Sep 2014 14:40:06 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 12 Sep 2014 23:40:04 +0200 From: Baptiste Daroussin To: Craig Rodrigues Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? Message-ID: <20140912214004.GT6096@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uWCTLymdFNG0vGYZ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current Current , Emanuel Haupt , ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2014 21:40:11 -0000 --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--