Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 14:51:42 +0100
From:      Troels Kofoed Jacobsen <tkjacobsen@gmail.com>
To:        freebsd-ports@freebsd.org
Cc:        chuckr@telenix.org
Subject:   Re: trying to fix a sed line
Message-ID:  <6a3173850912170551r238b051dg4c4b76f4f2ad9c86@mail.gmail.com>
In-Reply-To: <20091217071106.GA1401@photon.std>
References:  <4B295701.2000908@telenix.org> <20091217071106.GA1401@photon.std>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 17, 2009 at 8:11 AM, Troels Kofoed Jacobsen
<tkjacobsen@gmail.com> 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 befo=
re, and
>> I know about the s command, and how it sets it's delimiters. =A0Anyhow, =
here's the
>> broken line, and I hope my mailer doesn't decide to break the line for m=
e:
>>
>> REINPLACE_ARGS=3D -i.bak -E -e "1s,^(\#!.* )python$$,\1 -S PYTHONPATH=3D=
${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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3173850912170551r238b051dg4c4b76f4f2ad9c86>