From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] Trapping exit in tests, using return for errors Date: Wed, 10 Aug 2005 23:31:55 -0700 Message-ID: <7vvf2dm1b8.fsf@assigned-by-dhcp.cox.net> References: <1123732581.18644.37.camel@dv> <7virydnh1o.fsf@assigned-by-dhcp.cox.net> <7vzmrpm1q9.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Aug 11 08:32:29 2005 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E36bp-00029u-Bl for gcvg-git@gmane.org; Thu, 11 Aug 2005 08:32:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932241AbVHKGb5 (ORCPT ); Thu, 11 Aug 2005 02:31:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932279AbVHKGb5 (ORCPT ); Thu, 11 Aug 2005 02:31:57 -0400 Received: from fed1rmmtao05.cox.net ([68.230.241.34]:19454 "EHLO fed1rmmtao05.cox.net") by vger.kernel.org with ESMTP id S932241AbVHKGb5 (ORCPT ); Thu, 11 Aug 2005 02:31:57 -0400 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao05.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050811063155.WRAL8651.fed1rmmtao05.cox.net@assigned-by-dhcp.cox.net>; Thu, 11 Aug 2005 02:31:55 -0400 To: Pavel Roskin In-Reply-To: <7vzmrpm1q9.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Wed, 10 Aug 2005 23:22:54 -0700") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Junio C Hamano writes: > Sorry, sent it out without finishing. The worst is "return". Ah, my mistake. You have the eval that can eval "return" in a function and let that "return" return from that function. Cleverly done. Thanks.