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]

Re: libstdc++ configure time


On Mar 20, 2001, "Zack Weinberg" <zackw@Stanford.EDU> wrote:

> On Tue, Mar 20, 2001 at 12:59:59AM -0300, Alexandre Oliva wrote:
>> On Mar 19, 2001, Richard Henderson <rth@redhat.com> wrote:
>> 
>> > In most cases we'll be able to just change \ to @ in the echo text
>> > and use tr to revert the change.
>> 
>> But remember that you can't use echo to feed to some other program the
>> string whose backslashes you want to transform in something else.

> Um, could you unpack that a bit?  RTH's script does things like

> echo '@' | tr '@' '\'

> no backslashes in echo here...

This is transforming @s back to \s.  But you have to transform \s in
@s first, but you can't use echo to do this.  Of course, if the string
is a literal, you can get m4 to do the transformation for you, but
sometimes you don't have a string literal.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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