[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] test defs: add subroutine for input unindenting
From: |
Ralf Wildenhues |
Subject: |
Re: [PATCH] test defs: add subroutine for input unindenting |
Date: |
Mon, 28 Feb 2011 21:36:29 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
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.
> > or does that fall into this bucket:
> >
> > Unicos 9 sed loops endlessly on patterns like ‘.*\n.*’.
> >
> I dont see why; there's not `\n' nor repated `.*' in the regex ` *#.*'.
I wouldn't bother with Unicos. No use outside a museum.
> Your new implementation keeps the test `self-check-unindent.test'
> satisfied, so feel free to push it (either with or without the
> amendment to the 's/ #*.//' expression).
Thanks,
Ralf
- Re: [PATCH] test defs: add subroutine for input unindenting, (continued)
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/17
- Re: [PATCH] test defs: add subroutine for input unindenting, Stefano Lattarini, 2011/02/17
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/18
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/18
- Re: [PATCH] test defs: add subroutine for input unindenting, Ralf Wildenhues, 2011/02/21
- Re: [PATCH] test defs: add subroutine for input unindenting, Stefano Lattarini, 2011/02/21
- Re: [PATCH] test defs: add subroutine for input unindenting, Ralf Wildenhues, 2011/02/21
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/28
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/28
- Re: [PATCH] test defs: add subroutine for input unindenting, Stefano Lattarini, 2011/02/28
- Re: [PATCH] test defs: add subroutine for input unindenting,
Ralf Wildenhues <=
- Re: [PATCH] test defs: add subroutine for input unindenting, Peter Rosin, 2011/02/28
Re: [Ping PATCHES] {master} Optimize tests `instspc-*.test' for speed., Ralf Wildenhues, 2011/02/15