[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config.status - robust sed substitutions
From: |
Robert Anderson |
Subject: |
Re: config.status - robust sed substitutions |
Date: |
26 Feb 2003 15:39:42 -0800 |
On Wed, 2003-02-26 at 15:11, Paul Eggert wrote:
> Robert Anderson <address@hidden> writes:
>
> > _quote_for_sed()
> > {
> > cat<<_ACEOF | sed -e 's,[\&,],\\&,g'
> > $1
> > _ACEOF
> > }
>
> Many shell implementations are extremely slow with here-documents.
> Some are even buggy, e.g. SunOS 4.1.4 /bin/sh, and this has caused
> problems with existing Autoconf-generated configure scripts. We
> should try to avoid them.
I count 47 here-documents in autoconf/lib:
% find . -name \*.m4 | xargs egrep "<<[\]?_" | wc -l
47
the majority of which are used to generate config.status. Call me
stubborn but I can't see one more being a deal breaker (given the
alternatives).
Bob
- config.status - robust sed substitutions, Robert Anderson, 2003/02/26
- Re: config.status - robust sed substitutions, Paul Eggert, 2003/02/26
- Re: config.status - robust sed substitutions, Robert Anderson, 2003/02/26
- Re: config.status - robust sed substitutions, Paul Eggert, 2003/02/26
- Re: config.status - robust sed substitutions, Robert Anderson, 2003/02/26
- Re: config.status - robust sed substitutions, Robert Anderson, 2003/02/26
- Re: config.status - robust sed substitutions, Paul Eggert, 2003/02/27
- Re: config.status - robust sed substitutions, Robert Anderson, 2003/02/27
- Re: config.status - robust sed substitutions, Andreas Buening, 2003/02/28
- Re: config.status - robust sed substitutions, Robert Anderson, 2003/02/26