From owner-freebsd-current@FreeBSD.ORG Sat Sep 13 19:42:31 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 81B8CEA6; Sat, 13 Sep 2014 19:42:31 +0000 (UTC) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (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 BCDA8A2; Sat, 13 Sep 2014 19:42:30 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id c11so2616085lbj.15 for ; Sat, 13 Sep 2014 12:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JhmiM+829PAwQUNRWfdPqW9R9k3+3U+flhh9qKFGD04=; b=Xq54YQCSHam9NImPtUBmnmlFscQl81B4KhdN1kGuE8iDcfHVZVMpyJsTFP+lSifaZi blo98EVpcttCDIktsDAfYnCLXQ+AtgLDgIT81WY1YZbblg/SiC6TErMa5ZUgz2mLGLFz HdT7HqEYs8ngwTrlzkUfcFDbYynerH16whZJvTxS5C2Oxeix54KEWqrFf30vM8s24a/X TV72RqSCFm3Bwh0jpsMV3CuMZoEWBuQw01oeZup/LdR2smuLdJilyzfAarK5llFSho+3 IgRHMAc4ASWYVPscwW5hmFsMBcJEZ/rXigHPhDKcZlvH+nmhWAjYvWXR+DRfXOOAku1G GSdw== MIME-Version: 1.0 X-Received: by 10.112.72.10 with SMTP id z10mr11820247lbu.87.1410637348794; Sat, 13 Sep 2014 12:42:28 -0700 (PDT) Received: by 10.25.42.1 with HTTP; Sat, 13 Sep 2014 12:42:28 -0700 (PDT) In-Reply-To: <54148F47.4030000@freebsd.org> References: <541367D1.8090002@FreeBSD.org> <54148F47.4030000@freebsd.org> Date: Sat, 13 Sep 2014 21:42:28 +0200 Message-ID: Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? From: Andreas Nilsson To: Nathan Whitehorn Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Current FreeBSD 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 19:42:31 -0000 On Sat, Sep 13, 2014 at 8:39 PM, Nathan Whitehorn wrote: > 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 > > Sorry Nathan, reply all is sometimes harder than it should be. Just for the uncomfortable stuff: How about systems where env is not in /usr/bin ? I had that fun episode on an opensolaris-system... Best regards Andreas Nilsson