libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Darwin and archive_cmds quoting


From: Gary V . Vaughan
Subject: Re: Darwin and archive_cmds quoting
Date: Tue, 17 Apr 2001 02:29:04 +0100

On Monday 16 April 2001 11:56 pm, Kevin Ryde wrote:
> I wrote:
> > so maybe it's sed.
>
> Or maybe not.
>
>     eval "bar=\\\"\` echo \"\$quote\" \`\\\""
>     echo $bar
>
> in bash gives what I assume is the expected result
>
>     "s/\([\\"\\`$\\\\]\)/\\\1/g"
>
> whereas on Darwin
>
>     "s/\([\\"\\`$\\\\]\)/\1/g"
>
> Actually Darwin /bin/sh looks like it's zsh (should have checked that
> first :-( ).  In fact I get the same in zsh on i386 debian.  Don't
> know what to do about it though.

Oh dear.  I thought zsh was sane enough to do the right thing when argv[0] == 
/bin/sh =(O|  I take it that it is zsh builtin echo that is the culprit here. 
 Does /bin/echo work correctly?

Well, I have a couple of ideas for a workaround... 

You could try forcing a different shell:  CONFIG_SHELL=/other/shell 
/other/shell ./libtool blah...

Or else forcing the use of the slow fallback echo: ./libtool --no-reexec 
--fallback-echo blah...

If either of these (or a variation) works let me know, and we'll see if we 
can find a way to fix the echo tests so that the failure mode you are 
experiencing can be fixed properly.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]