shells/bash port, add a knob which symlinks to /bin/bash ?

Bryan Drewery bdrewery at FreeBSD.org
Fri Sep 12 22:55:58 UTC 2014


On 9/12/2014 5:45 PM, Lyndon Nerenberg wrote:
> 
> On Sep 12, 2014, at 3:23 PM, Craig Rodrigues <rodrigc at 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
> 

There already is one and ports requires using it!

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140912/e1dbe17a/attachment.sig>


More information about the freebsd-current mailing list