From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3191 invoked from network); 6 Aug 2008 14:23:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Aug 2008 14:23:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 51464 invoked from network); 6 Aug 2008 14:23:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Aug 2008 14:23:31 -0000 Received: (qmail 4150 invoked by alias); 6 Aug 2008 14:23:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25402 Received: (qmail 4130 invoked from network); 6 Aug 2008 14:23:09 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 Aug 2008 14:23:09 -0000 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by bifrost.dotsrc.org (Postfix) with ESMTP id 4EDDE8056E06 for ; Wed, 6 Aug 2008 16:23:03 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.214.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K5600CR5NXP9ZH8@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 06 Aug 2008 09:22:38 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m76EMaoY014657 for ; Wed, 06 Aug 2008 07:22:37 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m76EMa6p014656 for zsh-workers@sunsite.dk; Wed, 06 Aug 2008 07:22:36 -0700 Date: Wed, 06 Aug 2008 07:22:36 -0700 From: Bart Schaefer Subject: Re: PATCH: skip command from debug trap In-reply-to: <20080806104716.44647a75@news01> To: "Zsh hackers list" Message-id: <080806072236.ZM14655@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <27237.1217946438@csr.com> <6cd6de210808051647k17f14902nce840ca3edd6ddb@mail.gmail.com> <20080806104716.44647a75@news01> Comments: In reply to Peter Stephenson "Re: PATCH: skip command from debug trap" (Aug 6, 10:47am) X-Virus-Scanned: ClamAV 0.92.1/7959/Wed Aug 6 15:06:37 2008 on bifrost X-Virus-Status: Clean On Aug 6, 10:47am, Peter Stephenson wrote: } } An option to "return" is quite tempting. This separates out this behaviour } from any other. It removes any reliance on obscure numerology. It makes it } quite explicit this particular mechanism is in use. Currently return } doesn't take options at all, so the result is also completely compatible } with existing versions. Umm, the argument to return is interpreted as a math expression. So for example x=-3 return -x returns "3", and x=3 return --x returns "2". How are you going to make any kind of option parsing for return behave compatibly with that? } (In fact, the lack of option parsing, even --, in return is strictly a } bug, so this even makes it more compatible with other shells.) It'd have to be only in emulation mode, then.