[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tests: work around Tru64 sh -e issues for instspc*.test.
From: |
Eric Blake |
Subject: |
Re: tests: work around Tru64 sh -e issues for instspc*.test. |
Date: |
Thu, 20 Jan 2011 14:16:22 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 01/20/2011 02:04 PM, Ralf Wildenhues wrote:
> Hi Eric,
>
> * Eric Blake wrote on Thu, Jan 20, 2011 at 10:01:15PM CET:
>> On 01/20/2011 01:50 PM, Ralf Wildenhues wrote:
>>> Ahh, but it would have needed to be in that very patch, unfortunately.
>>> As it is, my last patch fixed Tru64, but regressed NetBSD by roughly the
>>> same number of failures, because `unset NOT_SET' fails there.
>>
>> But bash 2.05a would dump core on 'unset NOT_SET', as documented in the
>> autoconf manual.
>
> Erm, old bashs set an error status, but don't dump core. The core
> dumping was, if I understand correctly, only with MAIL (and only that
> variable) and only one specific bash version. But I haven't tested
> that now. If things are different, I'd appreciate an update to
> autoconf.texi.
Yep, I stand corrected. bash 2.05 doesn't dump core on unset, but
suffered from the same problem still in NetBSD /bin/sh in setting $?
incorrectly (which in turn affects set -e). The core dump was bash
2.01, and affected MAILCHECK as well as MAIL.
http://groups.google.com/group/gnu.bash.bug/msg/5a41781550c61d62
But since bash 2.05a is pretty much dead these days, while NetBSD
/bin/sh is still alive and kicking, the autoconf section should be
updated to use a modern example in its claim that unset exit status is
still a portability problem to be aware of.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature