bug-autoconf
[Top][All Lists]
Advanced

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

Re: [GNU Autoconf 2.62] testsuite: 44 failed


From: Vladimir
Subject: Re: [GNU Autoconf 2.62] testsuite: 44 failed
Date: Tue, 24 Jun 2008 19:58:51 +0900
User-agent: KMail/1.9.9

Ralf Wildenhues wrote on Tuesday 24 June 2008 02:55:55:
> [ quoting generously; Vladimir may not be subscribed ]
Sorry :).
> * Stepan Kasal wrote on Mon, Jun 23, 2008 at 04:43:29PM CEST:
>> On Mon, Jun 23, 2008 at 07:58:06PM +0900, Vladimir wrote:
>>> ++ printf '%s\n' 'abcd\c'
>>> + echo='abcd\c'
>>> + test 'Xabcd\c' = 'Xabcd\c'
>>> ++ printf %s 'abcd\c'
>>> + echo='abcd\c'
>>> + test 'Xabcd\c' = 'Xabcd\c'
>>
>> since your log ends like this, bash had to misparse the following
>> command, which is
>>      echo=`$as_echo '\a\b\c\f\n\r\t\v\"\'`
>> (This should be on line 504 of testsuite.dir/004/script.)
I checked the script (testsuite.dir/044/script) the line 504 has that content.
>>
>> This looks like a bug in your shell.  You might be able to reproduce
>> it with the following simple script:
>>
>> #!/bin/sh
>> as_echo='printf %s\n'
>> echo=`$as_echo '\a\b\c\f\n\r\t\v\"\'`
Yes, your are right!
===========================================
./bug-sh-autoconf.sh: line 3: unexpected EOF while looking for matching `''
./bug-sh-autoconf.sh: line 4: syntax error: unexpected end of file
===========================================
But you will be suprized: running the code
================================ bug-sh2-autoconf.sh 
================================
#!/bin/sh
as_echo='printf %s\n'
echo=$($as_echo '\a\b\c\f\n\r\t\v\"\')
================================ bug-sh2-autoconf.sh 
================================
ends without error! I remember some time ago Patrick Volkerding in ChangLog of 
Slackware
wrote about weird behaviour of old scripts running with modern bash (I looked 
into ChangLog
and found that bash3.2 is in testing/), also I heard that modern bash will not 
work with
`` (backquotes) only with $() (dollar parenthesis): seems that this is the case 
or related
with treatment of quotes.
>>
>> Generally, I tend to think that you have discovered a bug in (your
>> version of) bash, not in the Autoconf.
>
> Except that I cannot reproduce the issue with the same shell.
> Just for the record: Vladimir, can you post the md5sum of the
> script (so we can be sure it does not differ from the one we
> obtain)?
Okey, this is
36fc8dcf83832f7103083a2be48a4c6c  tests/testsuite.dir/044/script

I downloaded lzma archive and work with it.

P.S. I think we found the source of the problem. But I really don't like myself
convert all `` to $().

---
WBW, Vladimir Lomov




reply via email to

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