Subject: Re: bug#8846: coreutils-8.12 on HP-UX 11.31: 3 of 365 tests failed

From: Eric Blake <[email-masked]>
Date: Mon, 13 Jun 2011 08:59:47 -0600

On 06/13/2011 04:11 AM, Jim Meyering wrote:
> Thank you for the testing and report.
> That "bad file number" error comes from this code in init.sh:
> 
>     : ${stderr_fileno_=2}
>     warn_ () { echo "$@" 1>&$stderr_fileno_; }
> 
> Because of that, the log contains less information than usual.

I'm having problems summarizing this shell bug into a succinct
description that would be worth including in the autoconf manual.  What
exactly is the bug here?

That is, my attempt to provoke the problem on HP-UX 11.11 with this
snippet is not failing with a "bad file number":

$ /bin/sh -c 'n=3; f(){ echo "$@" 1>&$n; }; exec 3>&2; f hi'
hi

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org