From owner-freebsd-current@FreeBSD.ORG Fri Sep 12 22:02:06 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5692E8FD for ; Fri, 12 Sep 2014 22:02:06 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 42CE1FA7 for ; Fri, 12 Sep 2014 22:02:06 +0000 (UTC) Received: from u10-2-16-021.office.norse-data.com (unknown [50.204.88.51]) by elvis.mu.org (Postfix) with ESMTPSA id 5558F346DE11 for ; Fri, 12 Sep 2014 15:02:00 -0700 (PDT) Message-ID: <54136D5D.3090905@mu.org> Date: Fri, 12 Sep 2014 15:02:05 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? References: <20140912214004.GT6096@ivaldir.etoilebsd.net> In-Reply-To: <20140912214004.GT6096@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2014 22:02:06 -0000 The correct thing is to make a port/pkg that installs the symlink and /etc/shells this for the user. There is no need for changes to 'base' nor do we need a change to the system port. -Alfred On 9/12/14 2:40 PM, Baptiste Daroussin wrote: > On Fri, Sep 12, 2014 at 02:12:45PM -0700, Craig Rodrigues wrote: >> Hi, >> >> 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. >> >> 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 >> >> or >> >> ln /usr/local/bin/bash /bin/bash >> >> and then make sure that /etc/shells as: >> /usr/local/bin/bash >> /bin/bash >> >> Can we add an optional knob (turned off by default) which creates this >> symlink >> and updates /etc/shells? >> >> This would help with interoperability of FreeBSD hosts in environments mixed >> with Linux and MacOS X. >> > 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 going to > be removed. > > If you want interoperability just use /usr/bin/env bash as a shebang. Btw you > cannot get interoprability with OS-X in there because the bash they do provide > is the last GPL-2 recent bash have many incompatiblities with this old version. > > regards, > Bapt