From owner-freebsd-current@FreeBSD.ORG Fri Sep 12 22:46:19 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 C6CC632C; Fri, 12 Sep 2014 22:46:19 +0000 (UTC) Received: from orthanc.ca (orthanc.ca [IPv6:2607:f2f8:abf8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "orthanc.ca", Issuer "orthanc.ca CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B919669; Fri, 12 Sep 2014 22:46:19 +0000 (UTC) Received: from minnie.bitsea.ca (minnie.bitsea.ca [IPv6:2604:8800:137::7]) (authenticated bits=0) by orthanc.ca (8.14.7/8.14.7) with ESMTP id s8CMkEcO096855 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 12 Sep 2014 15:46:17 -0700 (PDT) (envelope-from lyndon@orthanc.ca) Content-Type: multipart/signed; boundary="Apple-Mail=_EC9F16AD-DF52-44F1-9EAE-AD8724093D3D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? From: Lyndon Nerenberg In-Reply-To: Date: Fri, 12 Sep 2014 15:45:47 -0700 Message-Id: <3A3F0052-5F35-4381-93E3-EAAE0616D292@orthanc.ca> References: <20140912214004.GT6096@ivaldir.etoilebsd.net> <54136D5D.3090905@mu.org> To: Craig Rodrigues X-Mailer: Apple Mail (2.1878.6) X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on orthanc.ca 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:46:19 -0000 --Apple-Mail=_EC9F16AD-DF52-44F1-9EAE-AD8724093D3D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 12, 2014, at 3:23 PM, Craig Rodrigues = wrote: > 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. Given the rigid nature of shebangs to begin with, it's really not that = hard to write a sed command that will capture all instances of = '#!.../bash[ foo]' and wire in an appropriate value of '...'. In fact, this case is a ripe candidate for a command = macro. --lyndon --Apple-Mail=_EC9F16AD-DF52-44F1-9EAE-AD8724093D3D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJUE3ebAAoJEG8PnXiV/JnU17IQAKBXXGx1Nvp2hjEgjggNnuBh BlpfkVLWAl2WPpxAYlwOiC20OGitLPw+8uaj66o0a6kPr4+huQoo0/Slm7vjixiA 1bvUfrJhUO2av7X1GrI5b8cZVYVSQFOk4eG5pzscnCic/Oj15BlJ+gLOUosV1YH7 1QB8U2x+efZmb5gu3prQ0f8mn3T4Nl1cwf54oEiGSM9rUsCw0Dy2LF8Lq5dek4ig OswVHsGbXXsTTvwgOwdsJhU8KAYUxC9t9rQR+127Ky/VWGDp27yyuzlqD2weUzuQ W2FcWwBGZeDQPcadrLaK2MJ8hJ0cYDcQr6M/AF8AC19u5iiyD2dExJArKg7gLIoW 0LiApsILyztA+inY3FU9ydHjoOsOJw2wP2+tyCJ90+/6KzOpcGYC59O5qAqDI7KE qH2KAS08/yOVESkSvrPwOKen8Q4Hmch/t/ZcwxW263gYgqr8K0CpgbidNE5CREZA ODn4XM1EMFeNwPgDN+Ts5s+/WnVVVfE4juCQRCTQJ3dJnKwtR6mv2fIQ62WNZlTs kG+qjAdwX5H8dUAOmxXPEVPnUhwSEbWdeaTsjACuvUQbHD8JGQAIOPFcxWKIu1m4 //Sq/W4vhim9WrF2ETdKty2wzfVKzqES4mpCmAThrxAorvsAjthbDiF3iqDQdvPt ikYGgIsLhltkvljUz2Y5 =Q7Sg -----END PGP SIGNATURE----- --Apple-Mail=_EC9F16AD-DF52-44F1-9EAE-AD8724093D3D--