From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1829 invoked by alias); 28 Jan 2011 14:52:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15736 Received: (qmail 4372 invoked from network); 28 Jan 2011 14:52:40 -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 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Fri, 28 Jan 2011 15:44:12 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: strange behavior Message-ID: <20110128144412.GA22306@ypig.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: <20101102120943.GK19295@prunille.vinc17.org> <20101115163234.GE19451@prunille.vinc17.org> <101115092438.ZM29576@torch.brasslantern.com> <20101116031023.GF19451@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101116031023.GF19451@prunille.vinc17.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6165-vl-r38670 (2010-12-30) On 2010-11-16 04:10:23 +0100, Vincent Lefevre wrote: > On 2010-11-15 09:24:38 -0800, Bart Schaefer wrote: > > On Nov 15, 5:32pm, Vincent Lefevre wrote: > > } > > } > ypig:~/wd> up > > } > At revision 40202. > > } > zsh: exit 141 > > } > ypig:~/wd[PIPE]> > > } > > } This has just happened again. This time, the machine hadn't been > > } rebooted (but there has been a lot of disk activity before that). > > > > It appears to me that it must be the case that > > svn "$@" > > is exiting with status 141, rather than that the filter function is > > killing its parent with a PIPE signal. > > I don't think this is possible as when svn receives a PIPE signal, > it outputs "svn: Write error: Broken pipe" and exits with status 1. > But I've added some code to check that status 141 is not possible. While the problem described above was not rare, since I modified the script in the following way (two months ago), I can no longer see the problem. -{ svn "$@"; st=$?; echo "svnwrapper:term" >&2 } 2>>(filter) +{ + svn "$@" + st=$? + [[ $st -eq 141 ]] && echo "Exit with status 141!" >&2 + echo "svnwrapper:term" >&2 +} 2>>(filter) So, either the problem has been fixed somewhere or it can no longer be seen due to the change in my script. In the latter case, it is probably a bug in zsh. I'm going to revert this change and see if I can see the problem again... -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)