This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SED is ugly stuff...


Jeffrey A Law wrote:
>   > Here is the sed `loop':
>   >
>   >   :loop
>   >   /\\$/N
>   >   s/\\$/\\+++fixinc_eol+++/
>   >   /\\$/b loop
>   >   s/\\+++fixinc_eol+++/\\/g

>   >
>   >   :loop
>   >   /\\$/ {
>   >     N
>   >     b loop
>   >   }

>   >
>   >   :loop
>   >   /\\$/ {
>   >     s/\\$/\\+++fixinc_eol+++/g
>   >     N
>   >     b loop
>   >   }
>   >   s/+++fixinc_eol+++//g
>
> You should test this using the hpux10.20 un-patched sed.
> That is what led to the code you're asking about.

I can't.  I don't have access.
Can anyone with with the "hpux10.20 un-patched sed"
test these three expressions and tell us if they
are all equivalent?  The first and last really should
be; it would be nice if the middle one were also.

Bruce

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]