This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: non-portable construct in gcc configure script


> That looks like a sensible way to do it.

Thanks for your answer!

> > -			 | grep -A1 myfoosect`
> > +			 | sed -n '/.*myfoosect.*/{
> > +						  N
> > +						  p
> > +						  }'`
>
> Suggest  '/myfoosect/{; N; p; }'

Yes, the '.*' are clearly superfluous. But the ';' as separator doesn't work 
with Solaris sed so I resorted to what the Solaris manual says (and which 
works with GNU sed too).

I've already posted a patch, not yet reviewed:
http://gcc.gnu.org/ml/gcc-patches/2003-05/msg02277.html

-- 
Eric Botcazou


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