From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2850 invoked from network); 6 Aug 2008 14:30:48 -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=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:30:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 54398 invoked from network); 6 Aug 2008 14:30:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Aug 2008 14:30:40 -0000 Received: (qmail 6488 invoked by alias); 6 Aug 2008 14:30:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25403 Received: (qmail 6463 invoked from network); 6 Aug 2008 14:30:20 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 Aug 2008 14:30:20 -0000 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by bifrost.dotsrc.org (Postfix) with ESMTP id 4B7798056E06 for ; Wed, 6 Aug 2008 16:30:15 +0200 (CEST) Received: by py-out-1112.google.com with SMTP id u77so1299976pyb.23 for ; Wed, 06 Aug 2008 07:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+zLQW910pRql9TZ+Dvss6E+NprVmFy1GbooM6OQUmIk=; b=nuaoFJA8bfFiKEeQyJkQ5kZnH0Ei7LJrDBOcS0y6E1Z6fQjEYC1jQNJEgw/CQ4RjXU LBmvCKa4RKmVJjaR93CimUzP3HpdagZD4d/LTr4i0GN+kuyYt6M9ldFRxFTsqQdO69/t 8OnPdnaBMrmxvkOcC9/8+ccEZcL2ffLKisRvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Wdf+UOYdsJiKm5FFU1EKLeL9ENFWrn6Rj6thkhcwbHE+/sgNCq0qQZiDpq8yHQhHXK Enad4Hg2LPQo8m4fmJ36odtQp77j7EyTBWR+TRqtrwl/WL4fCKW9r8seZ0VCQlq6oing aNwjLOCtF48N4hNSWOpIOB5bA/+izftixj3SE= Received: by 10.115.58.1 with SMTP id l1mr298420wak.27.1218033014344; Wed, 06 Aug 2008 07:30:14 -0700 (PDT) Received: by 10.114.159.2 with HTTP; Wed, 6 Aug 2008 07:30:14 -0700 (PDT) Message-ID: <6cd6de210808060730q3ebdc5cdt71b381f861ff0fa1@mail.gmail.com> Date: Wed, 6 Aug 2008 10:30:14 -0400 From: "Rocky Bernstein" To: "Bart Schaefer" Subject: Re: PATCH: skip command from debug trap Cc: "Zsh hackers list" In-Reply-To: <080806072236.ZM14655@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <27237.1217946438@csr.com> <6cd6de210808051647k17f14902nce840ca3edd6ddb@mail.gmail.com> <20080806104716.44647a75@news01> <080806072236.ZM14655@torch.brasslantern.com> X-Virus-Scanned: ClamAV 0.92.1/7959/Wed Aug 6 15:06:37 2008 on bifrost X-Virus-Status: Clean On Wed, Aug 6, 2008 at 10:22 AM, Bart Schaefer wrote: > 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? How about "return $((x))", or "return $((-x))"?