[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: |
Stefano Lattarini |
Subject: |
Re: [PATCH] test defs: add subroutine for input unindenting |
Date: |
Mon, 28 Feb 2011 13:54:20 +0100 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
On Monday 28 February 2011, Peter Rosin wrote:
> Den 2011-02-21 21:23 skrev Ralf Wildenhues:
> > * Stefano Lattarini wrote on Mon, Feb 21, 2011 at 03:11:27PM CET:
> >> On Monday 21 February 2011, Ralf Wildenhues wrote:
> >>> It will be unintelligible without the comments, however.
> >
> >>> gnulib-tool has a sed comment removal, search for
> >>> $sed_comments. What I wouldn't like is invoking an extra sed in each
> >>> test startup just to remove comments from a helper function, that will
> >>> noticeably slow down things
> >>>
> >> Or the comments could be stripped lazily upon the first invocation of
> >> 'unindent'; e.g.:
> >
> > Good idea.
>
> 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/ #.*//'.
> 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 ` *#.*'.
> Cheers,
> Peter
>
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,
Stefano
- 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, 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 <=
- Re: [PATCH] test defs: add subroutine for input unindenting, Ralf Wildenhues, 2011/02/28
- 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