From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17945 invoked by alias); 21 Oct 2011 11:09:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29839 Received: (qmail 1030 invoked from network); 21 Oct 2011 11:09:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Fri, 21 Oct 2011 12:08:48 +0100 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Re: 4.3.12-test-2 Message-ID: <20111021120848.252c5811@pwslap01u.europe.root.pri> In-Reply-To: <20111021102007.GB23272@redoubt.spodhuis.org> References: <20111020213929.410073fe@pws-pc.ntlworld.com> <20111021102007.GB23272@redoubt.spodhuis.org> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.101.11.233] X-Scanned-By: MailControl 7.6.3 (www.mailcontrol.com) on 10.68.0.150 On Fri, 21 Oct 2011 06:20:07 -0400 Phil Pennock wrote: > Between 4.3.12 and HEAD/4.3.12-test-2 I've started getting: > > /home/phil/.zshenv:133: failed to close file descriptor 1: bad file descriptor > /home/phil/.zshenv:136: failed to close file descriptor 1: bad file descriptor > /home/phil/.zshenv:142: failed to close file descriptor 1: bad file descriptor > /home/phil/.zshenv:146: failed to close file descriptor 1: bad file descriptor > > Those correspond to function definitions of the form: > > functions >&- have_cmd || function have_cmd { [[ -x =$1 ]] 2>/dev/null } Hmm... I'm getting an error from closing stdout (just once), too. That doesn't seem right and needs looking into. Possibly the error is failing to close it, rather than the new error message (which is deliberate if the shell fails to do an operation on file descriptors you've explicitly asked for), so the real problem may not be new. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog