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

From: Lyndon Nerenberg <lyndon_at_orthanc.ca>
Date: Fri, 12 Sep 2014 15:45:47 -0700
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


Received on Fri Sep 12 2014 - 20:46:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:52 UTC