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

Lyndon Nerenberg lyndon at orthanc.ca
Fri Sep 12 22:46:19 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140912/6ac7c490/attachment.sig>


More information about the freebsd-current mailing list