SED is ugly stuff...
Bruce Korb
bkorb@sco.COM
Tue Jan 18 13:44:00 GMT 2000
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
More information about the Gcc-patches
mailing list