automake-patches
[Top][All Lists]
Advanced

[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:01:15 -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 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.  So the portable workaround that should keep NetBSD's
sh -e happy is:

foo=; unset foo

if you aren't sure in advance whether foo is set.

$ /bin/sh -ce 'unset foo; echo hi'
$ /bin/sh -ce 'foo=; unset foo; echo hi'
hi

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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