Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: skip command from debug trap
- X-seq: zsh-workers 25402
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: skip command from debug trap
- Date: Wed, 06 Aug 2008 07:22:36 -0700
- In-reply-to: <20080806104716.44647a75@news01>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <27237.1217946438@xxxxxxx> <6cd6de210808051647k17f14902nce840ca3edd6ddb@xxxxxxxxxxxxxx> <20080806104716.44647a75@news01>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author