|
From: | Eric Blake |
Subject: | Re: [PATCH] tests/portability: avoid spurious failure with OpenBSD's /bin/sh |
Date: | Wed, 08 Sep 2010 07:39:43 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 |
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.
-- Eric Blake address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |