From owner-freebsd-current@FreeBSD.ORG Sat Sep 13 19:39:59 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 A2341E01; Sat, 13 Sep 2014 19:39:59 +0000 (UTC) Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) (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 3958FF88; Sat, 13 Sep 2014 19:39:59 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id a3so682807oib.28 for ; Sat, 13 Sep 2014 12:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jlUSy5Ft26U9ZDFaXIAx+wm4JCcgX+R3vM15v6cUAXY=; b=qz0NoWTYo+PsvJOGJ3p+s5yCWuFZqLshP/FWYaVYgP8aD5Di3gdOYwA3fIxpOqfM1T lxugkNiiC5Mcb2wZIYll4NSt1n0UjdywmvBUD6E8C466XWTBYO6E3z/IeoUaIrEa1f1Z c5lOnbxKNLXuvFdzQjITqXt7nKf/lGacfniD+pX8xNnm1wo1r1CnAyluoAEXCfoGGtuO oNr7zBVG8+bJQGQ6jRIxpaz2wsO7LI2Pp+DidfDzFDQuP4vzNLXiOa5ibScEctGhpxeP NezFoEqBsX0wP3ZOaw+3cHYP4h+MjmBRihw7D7qyQEcyvImahGZSV/FTxxZh0S34FOph dT6g== X-Received: by 10.60.119.98 with SMTP id kt2mr17232538oeb.13.1410637198450; Sat, 13 Sep 2014 12:39:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.175.230 with HTTP; Sat, 13 Sep 2014 12:39:17 -0700 (PDT) In-Reply-To: References: <541367D1.8090002@FreeBSD.org> From: Dreamcat4 Date: Sat, 13 Sep 2014 20:39:17 +0100 Message-ID: Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Sat, 13 Sep 2014 22:50:07 +0000 Cc: freebsd-current Current , ports , Emanuel Haupt , Bryan Drewery 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:39:59 -0000 Right, well here is another one: The missing symlink for /etc/ssl/cert.pem There is no reason it should not be in ${prefix}/etc/ssl/cert.pem Except that the folder etc/ssl/ only exists in base. Without this symlink, then SSL certs aren't found by the 'fetch' command and many significant websites these days can't work without SSL. For example github.com (there are others). On Sat, Sep 13, 2014 at 7:32 PM, 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-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"