trying to fix a sed line

Troels Kofoed Jacobsen tkjacobsen at
Thu Dec 17 13:51:44 UTC 2009

On Thu, Dec 17, 2009 at 8:11 AM, Troels Kofoed Jacobsen
<tkjacobsen at> wrote:
> On Wed, Dec 16, 2009 at 04:54:09PM -0500, Chuck Robey wrote:
>> I don't do enough in sed .... if I could figure out what it is that the broken
>> line is TRYING to do, I think maybe I could fix it, I HAVE used sed before, and
>> I know about the s command, and how it sets it's delimiters.  Anyhow, here's the
>> broken line, and I hope my mailer doesn't decide to break the line for me:
>> REINPLACE_ARGS= -i.bak -E -e "1s,^(\#!.* )python$$,\1 -S PYTHONPATH=${DATADIR}
>> ${PYTHON_CMD},1"

It could also be a problem that REINPLACE_CMD expands to "sed -i" or
something like this, but you also give it the same flag!

/Troels Kofoed Jacobsen

More information about the freebsd-ports mailing list