Date: Fri, 12 Sep 2014 15:45:47 -0700 From: Lyndon Nerenberg <lyndon@orthanc.ca> To: Craig Rodrigues <rodrigc@freebsd.org> Cc: freebsd-current Current <freebsd-current@freebsd.org> Subject: Re: shells/bash port, add a knob which symlinks to /bin/bash ? Message-ID: <3A3F0052-5F35-4381-93E3-EAAE0616D292@orthanc.ca> In-Reply-To: <CAG=rPVeCwWQ5RP=EkkUMojzYprV3Se%2BjP9g31p0-eUmSPBUWRQ@mail.gmail.com> References: <CAG=rPVf5z4c6aheCngKy1g-iH8HexAWGQfHoSbtU9D1UC0Pbpg@mail.gmail.com> <20140912214004.GT6096@ivaldir.etoilebsd.net> <54136D5D.3090905@mu.org> <CAG=rPVeCwWQ5RP=EkkUMojzYprV3Se%2BjP9g31p0-eUmSPBUWRQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <rodrigc@freebsd.org> = 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 <bsd.port.mk> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A3F0052-5F35-4381-93E3-EAAE0616D292>