automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] test defs: add subroutine for input unindenting


From: Peter Rosin
Subject: Re: [PATCH] test defs: add subroutine for input unindenting
Date: Mon, 28 Feb 2011 22:01:35 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

Den 2011-02-28 21:36 skrev Ralf Wildenhues:
> Hello,
> 
> * Stefano Lattarini wrote on Mon, Feb 28, 2011 at 01:54:20PM CET:
>> On Monday 28 February 2011, Peter Rosin wrote:
>>> How about this?
>>>
>>> Should the sed command to strip comments be "s/ *#.*//",
>>>
>> IMHO yes, but I have no strong feelings here -- I'm ok also with the
>> "weaker" 's/ #.*//'.
> 
> It would be nice your sed script would allow sed scripts like
>   s/#//
>   s/ #//
> 
> to continue to work.  But if they don't, for now, that's not a big
> problem either: failures will be noisy.

Implementing something that covers every corner case requires a
complete sed parser.  That's not viable of course, so that's
obviously not what you mean.  How about:

        sed -e 's/  *# .*//'

Cheers,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]