Re: [PATCH] Fix sed syntax in t7502-commit for OSX
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- May 15, 2008, 09:37 UTC
- Message-ID
- <8aa486160805150237t734b24dcw4a153e41cbc7436e@mail.gmail.com>
- In-Reply-To
- <7vwslwgdyi.fsf@gitster.siamese.dyndns.org>
On Thu, May 15, 2008 at 10:37 AM, Junio C Hamano <gitster@pobox.com> wrote:
> > But more importantly, as we are serious about portability, we should not > be using "sed -i" which is not even in POSIX to begin with.
Is there a way (environment variable, flag) to test if it is POSIX? Or we just have to know?
I'll send a patch to document the "sed -i" issue in Documentation/CodingGuidelines.
> Can we > rewrite these places without using the in-place extension?
Yes, I'll do it soon if nobody beats me.
Santi