[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests/portability: avoid spurious failure with OpenBSD's /bi
From: |
Jim Meyering |
Subject: |
Re: [PATCH] tests/portability: avoid spurious failure with OpenBSD's /bin/sh |
Date: |
Wed, 08 Sep 2010 16:09:20 +0200 |
Eric Blake wrote:
> On 09/08/2010 04:05 AM, Jim Meyering wrote:
>> FYI, I needed this to avoid a test failure on OpenBSD 4.7.
>> Contrast these:
>>
>> $ /bin/sh -c 'set -x; P=1 : 2> err' 2>/dev/null; cat err
>> + P=1
>> $ bash -c 'set -x; P=1 : 2> err' 2>/dev/null; cat err
>> $
>
> Autoconf already documents that the order between 'set -v' or 'set -x'
> tracing and stderr redirections is indeterminate, and that you must be
> prepared to deal with traces in stderr in some but not all shells. So
> your fix is the correct one.
Thanks for the review.
I've pushed it.