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 [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
