From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6719 invoked by alias); 23 May 2011 15:19:52 -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: 29347 Received: (qmail 4487 invoked from network); 23 May 2011 15:19:49 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110523081926.ZM1957@torch.brasslantern.com> Date: Mon, 23 May 2011 08:19:26 -0700 In-reply-to: <20110523101415.42244f06@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: XTRACE output -- I thought we'd fixed this?" (May 23, 10:14am) References: <110516142843.ZM27780@torch.brasslantern.com> <20110523101415.42244f06@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Subject: Re: XTRACE output -- I thought we'd fixed this? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 23, 10:14am, Peter Stephenson wrote: } Subject: Re: XTRACE output -- I thought we'd fixed this? } } On Mon, 16 May 2011 14:28:43 -0700 } Bart Schaefer wrote: } > Stderr redirection isn't supposed to redirect the xtrace descriptor } > unless you use a { ... } construct. There's even this in } > exec.c:execcmd(): } > } > /* Make a copy of stderr for xtrace output before redirecting */ } } I've been very confused by this, so it's quite possible something is } still wrong. The code to create a newxtrerr exec.c after line 2867 does get run, and then the redirections happen, but then at line 3082 after closing all the mnodes, we restore xtrerr to stderr again. This was added in the same patch that introduced the newxtrerr copy of xtrerr. The www.zsh.org web server is down so I can't check the archive; commit log says: revision 1.132 date: 2008/06/11 09:27:55; author: pws; state: Exp; lines: +8 -7 25145: make sure XTRACE output is redirected with stderr At this point, I'm also confused. It appears zsh is deliberately redirecting xtrace with stderr, whereas bash appears not to do so.