Re: little anoyance with configure

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, ohp(at)pyrenet(dot)fr, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: little anoyance with configure
Date: 2006-11-30 22:10:04
Message-ID: 456F56BC.3@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout wrote:
> On Thu, Nov 30, 2006 at 04:44:46PM -0500, Tom Lane wrote:
>
>> ohp(at)pyrenet(dot)fr writes:
>>
>>> On Thu, 30 Nov 2006, Peter Eisentraut wrote:
>>>
>>>> Second thought ... it's interpreting the '-' as an option? Does this
>>>> work:
>>>> ... | tr 'a_b' 'a-b'
>>>>
>>> YES!
>>>
>> Patch applied per Peter's suggestion.
>>
>
> Doesn't that do something entirely different? The original purpose was
> to convert underscores to hyphens, but it's doing something else
> entirely.
>
> $ echo test_string | tr 'a_b' 'a-b'
> testbstring
>
> On my system I need to at least escape the hyphen again:
>
> $ echo test_string | tr 'a_b' 'a\-b'
> test-string
>
> Character classes didn't do it for me: [_] -> [-]
>
> Have a nice day,
>

Would not this be a simple solution? And configure is already littered
with uses of sed.

sed 's/_/-/g'

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-11-30 22:11:54 Re: little anoyance with configure
Previous Message Tom Lane 2006-11-30 22:06:13 FOR SHARE vs FOR UPDATE locks