From owner-freebsd-current@FreeBSD.ORG Sat Sep 13 18:39: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 548B0D4D for ; Sat, 13 Sep 2014 18:39:06 +0000 (UTC) Received: from i3mail.icecube.wisc.edu (i3mail.icecube.wisc.edu [128.104.255.23]) by mx1.freebsd.org (Postfix) with ESMTP id 24D17A90 for ; Sat, 13 Sep 2014 18:39:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by i3mail.icecube.wisc.edu (Postfix) with ESMTP id E1B5038084 for ; Sat, 13 Sep 2014 13:39:04 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from i3mail.icecube.wisc.edu ([127.0.0.1]) by localhost (i3mail.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id tzW-rdAFG2NR for ; Sat, 13 Sep 2014 13:39:04 -0500 (CDT) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) by i3mail.icecube.wisc.edu (Postfix) with ESMTPSA id 975D238083 for ; Sat, 13 Sep 2014 13:39:04 -0500 (CDT) Message-ID: <54148F47.4030000@freebsd.org> Date: Sat, 13 Sep 2014 11:39:03 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? References: <541367D1.8090002@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; 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: Sat, 13 Sep 2014 18:39:06 -0000 On 09/13/14 11:32, Craig Rodrigues wrote: > On Fri, Sep 12, 2014 at 2:38 PM, Bryan Drewery wrote: > >> There's no reason for bash (and perl) to be exceptions to the 24000 >> other ports that install to /usr/local/bin. I can think of dozens of >> other ports that will fall into the same arguments being made here, but >> it does not mean it is the right thing for FreeBSD. >> >> If you want to install the symlink on your system feel free to do it. I >> install a static bash to /bin/bash on mine and only because I prefer >> bash shell and want it in / for single-user mode. That's my personal >> choice though. >> >> The proper fix is to fix scripts to be portable and use #! /usr/bin/env >> bash rather than /bin/bash. >> > Technically, I agree with you that people should write portable shell > scripts, > and use #!/usr/bin/env bash rather than #!/bin/bash. > > Pushing that behavior upstream is not always practical these days, where > FreeBSD is in the minority, while Linux and MacOS X are in the vast > majority of where > people are doing development and learning how to write shell scripts these > days. > > The /bin/bash thing is relatively minor, but I brought it up, because I see > it so much. > I've seen it in the jobs that I've worked at. I've also seen it when > dealing with Google > Summer of Code students. I've seen it in blogs mentioned when Linux users > evaluate FreeBSD. > I've seen it when people design appliances based on FreeBSD, but want the > device to be > "familiar" enough for Linux-y devops people to interact with it. > > If there are minor things that we can do in FreeBSD to improve the > out-of-box experience > of FreeBSD to new users who may be used to Linux or MacOS X, that would be > great. > Telling people to change their shell scripts, or manually create symlinks > to /bin/bash is doable, > but why not have something in the system do this automatically, so that the > average end-user does > not even have to think about it? > > If adding an optional knob to the bash port which is OFF by default to do > this is a no-go, > would having an optional port like what Brooks Davis mentioned be allowed > which creates > the symlink and updates /etc/shells? > > -- > Craig > _______________________________________________ > 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" > I'd point out that the perl ports have exactly such an option already (putting links in /usr/bin, in this case). The CUPS port does too. -Nathan