This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SED is ugly stuff...
- To: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Re: SED is ugly stuff...
- From: Bruce Korb <bkorb at sco dot COM>
- Date: Tue, 18 Jan 2000 13:45:37 -0800
- CC: law at cygnus dot com
- Organization: Santa Cruz Operation
- References: <1657.948230052@upchuck>
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