From owner-freebsd-current@FreeBSD.ORG Fri Sep 12 22:23:38 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 0BE0668E for ; Fri, 12 Sep 2014 22:23:38 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (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 74DAD255 for ; Fri, 12 Sep 2014 22:23:37 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id l4so1688033lbv.8 for ; Fri, 12 Sep 2014 15:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=dBIPDfvmCr36+kp3XdX7YpTA17D75RgyJOHgVx9ZtO0=; b=pTwNSZ4crxQxMENn/I1ZagWYh4zHBAqtwMw4YRIdlR2ffNyxAzZ3PU7LT7dTL1m9Jr O8z1KSGp/35wcP7YAqVcneWMy3bOMDAUaxc1vrhCSSGQHLzJ0qYa3mr6K3cLPZ5b+D0s R3bIZBrZXyl7O9ugFBYihGARVPUZrkjUGEE5gW0wICcF/507wZbgdbuJzajrHrrzqIlC llai62eOkuv7nXpiP2iDEU8FdQFKu33rRlbjm9mj1cVnz317yZMRUMLC2I0RRCypskwX OHKbw3mjkHcPvDCszvQhFDLa5KTZiXoIm9Q3Ifyvl7SHf1NHbVtESmlHd6FzsmO309bA sK9w== MIME-Version: 1.0 X-Received: by 10.152.115.195 with SMTP id jq3mr6540984lab.90.1410560615373; Fri, 12 Sep 2014 15:23:35 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.22.72 with HTTP; Fri, 12 Sep 2014 15:23:35 -0700 (PDT) In-Reply-To: <54136D5D.3090905@mu.org> References: <20140912214004.GT6096@ivaldir.etoilebsd.net> <54136D5D.3090905@mu.org> Date: Fri, 12 Sep 2014 15:23:35 -0700 X-Google-Sender-Auth: 5stqe1x8tOxcHQPlbM_iNBF_wII Message-ID: Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? From: Craig Rodrigues To: Alfred Perlstein Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-current Current 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:23:38 -0000 Hi, I could live with this solution of additional port outside of the main bash port, which creates the symlink and updates /etc/shells. One other thing I am seeing is that many, many shell scripts are written assuming "#!/bin/bash". Forcing all upstream script writers to switch to "#!/usr/bin/env bash", or to convert their scripts to "#!/bin/sh" and remove all bash-specific behaviors, is getting harder and harder, since many people are exposed to MacOS X and Linux on desktops. -- Craig On Fri, Sep 12, 2014 at 3:02 PM, Alfred Perlstein wrote: > 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 >> > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >