Patrick Welche wrote:
> On Wed, Jul 28, 2004 at 06:38:56PM +0100, Gary V. Vaughan wrote:
> 
>>If you revert my patch, or fetch the prepatch revision from my arch
>>mirror, and bootstrap with HEAD autoconf, does the new AS_SHELL_SANITIZE
>>from autoconf prevent the crash when setting output_verbose_link_cmd?
> 
> 
> That's it - I first just tried installing a new cvs-autoconf with Paul's
> patch. That didn't fix the LT_LANG(C++) using quoting problem. I then
> got rid of the backslashes as per your patch, and that made libtool.m4
> happy.

That's bad :-(

I've only been able to remove the bogus nested escaped double quotes in
some of libtool.m4, including the one that triggers with your particular
combination of host, compiler and shell.  If the AS_SHELL_SANITIZE isn't
placating pdksh, then other combinations of host/compiler/shell will
still trip over the quotes I couldn't strip.

The key is in this part of the manual page:

  echo "`echo \"hi\"`" produces `"hi"' in posix mode, `hi' in non-posix mode

Let's see what bash does:

bash$ echo "`echo \"hi\"`"
hi
bash$ set -o posix
bash$ echo "`echo \"hi\"`"
hi

And now pdksh:

ksh$ echo "`echo \"hi\"`"
hi
ksh$ set -o posix
ksh$ echo "`echo \"hi\"`"
"hi"
ksh$ set +o posix
ksh$ echo "`echo \"hi\"`"
hi

So, it appears that pdksh is confused over what the posix behaviour should
be :-(

I think autoconf should test for that bug and skip a shell that has it when
searching for a suitable shell...

Paul?

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  [EMAIL PROTECTED],gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to