Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: `try' syntax
- X-seq: zsh-workers 20052
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: `try' syntax
- Date: Tue, 15 Jun 2004 12:51:31 +0200
- In-reply-to: <Pine.LNX.4.44.0406141015190.32342-100000@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <29441.1087232105@xxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0406141015190.32342-100000@xxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> * How about making this work with any loop body by replacing "do" with
> "try"? Then get rid of "try" as a standalone reserved word and instead
> use "repeat 1; try ... always ... done"
That looks quite good to me. Makes the 'try' extension easier to
use, easier to integrate with existing scripts and a lot easier to
remember.
> * Rather than putting colons or some other unlikely character in front of
> the name, use plain words and start with them "disable"d, so that in order
> to use this syntax one must first "enable -r try always tried". (This
> technique could apply to other extension syntax as well.)
This looks good to me, too. I wouldn't disable it by default,
they shoudn't cause no harm. And if they do, how about 'ztry'?
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author