bug-autoconf
[Top][All Lists]
Advanced

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

Re: [GNU Autoconf 2.63] testsuite: 51 failed


From: Eric Blake
Subject: Re: [GNU Autoconf 2.63] testsuite: 51 failed
Date: Sat, 28 Feb 2009 06:34:04 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 2/25/2009 2:52 PM:
>> 3.1.17(1)-release
>> lrwxrwxrwx 1 root root 4 Nov  4  2006 /bin/sh -> bash
> 
> Good to know.  Hopefully it won't take me too long to dig up a working bash 
> 3.1.17 (I think I a pre-built copy of it lying around somewhere), to verify 
> my 
> analysis.

I'm having difficulties reproducing things:

$ bash --version
GNU bash, version 3.1.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Dec  6  2006 /bin/sh -> bash
$ cd autoconf-2.63
$ make check TESTSUITEFLAGS=51
...
## ----------------------------- ##
## GNU Autoconf 2.63 test suite. ##
## ----------------------------- ##
 51: AS_ECHO and AS_ECHO_N                           ok

There's obviously something different between my environment and yours, so
I can't explain why you are failing.

> Yes it does.  Here's what your bash 3.1 did:
> 
>> test "X$echo" = 'Xabcd\c' ||
>>   echo "AS_ECHO_N('"'abcd\c'"') outputs '$echo'" >&2
>> + test 'Xabcd\c' = 'Xabcd\c'
>> echo=`$as_echo '\a\b\c\f\n\r\t\v\"\'`
>> test "X$echo" = 'X\a\b\c\f\n\r\t\v\"\' ||
>>   echo "AS_ECHO('"'\a\b\c\f\n\r\t\v\"\'"') outputs '$echo'" >&2
>>
>> echo=`$as_echo_n '\a\b\c\f\n\r\t\v\"\'`
>> test "X$echo" = 'X\a\b\c\f\n\r\t\v\"\' ||
> ...
> 
> vs. bash 3.2:
> 
> + test 'Xabcd\c' = 'Xabcd\c'
> echo=`$as_echo '\a\b\c\f\n\r\t\v\"\'`
> $as_echo '\a\b\c\f\n\r\t\v\"\'
> ++ printf '%s\n' '\a\b\c\f\n\r\t\v\"\'
> + echo='\a\b\c\f\n\r\t\v\"\'
> test "X$echo" = 'X\a\b\c\f\n\r\t\v\"\' ||
>   echo "AS_ECHO('"'\a\b\c\f\n\r\t\v\"\'"') outputs '$echo'" >&2
> + test 'X\a\b\c\f\n\r\t\v\"\' = 'X\a\b\c\f\n\r\t\v\"\'
> 
> If I'm reading correctly, POSIX says that `\"` is undefined:

I'm starting to think it is well-defined; every shell that I've tried
prints " when I try:

$ echo `echo \"`

Can you try just the few lines from the shell script in isolation, to see
if we can reproduce anything?

$ as_echo='printf %s\\n'
$ echo=`$as_echo '\a\b\c\f\n\r\t\v\"\'`
$ echo "-$echo-"

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmpPUwACgkQ84KuGfSFAYAErACfeYVaC+C2PGx4D3sO6+nidK4D
GoAAoK1c3kE3ZVYYFv0/jMv1giYmrfeg
=vvjj
-----END PGP SIGNATURE-----




reply via email to

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