Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: skip command from debug trap
- X-seq: zsh-workers 25403
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: skip command from debug trap
- Date: Wed, 6 Aug 2008 10:30:14 -0400
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- 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=
- In-reply-to: <080806072236.ZM14655@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <27237.1217946438@xxxxxxx> <6cd6de210808051647k17f14902nce840ca3edd6ddb@xxxxxxxxxxxxxx> <20080806104716.44647a75@news01> <080806072236.ZM14655@xxxxxxxxxxxxxxxxxxxxxx>
On Wed, Aug 6, 2008 at 10:22 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> 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))"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author