From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25843 invoked from network); 15 Jun 2004 11:06:47 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 15 Jun 2004 11:06:47 -0000 Received: (qmail 26346 invoked from network); 15 Jun 2004 11:06:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 11:06:30 -0000 Received: (qmail 1050 invoked by alias); 15 Jun 2004 11:06:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20052 Received: (qmail 1036 invoked from network); 15 Jun 2004 11:06:22 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 15 Jun 2004 11:06:19 -0000 Received: (qmail 26025 invoked from network); 15 Jun 2004 11:06:18 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 11:06:17 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i5FB6Ca02838 for ; Tue, 15 Jun 2004 13:06:13 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1BaBXP-0003Yw-00>; Tue, 15 Jun 2004 12:51:31 +0200 Date: Tue, 15 Jun 2004 12:51:31 +0200 From: DervishD To: Zsh hackers list Subject: Re: PATCH: `try' syntax Message-ID: <20040615105131.GA13695@DervishD> Mail-Followup-To: Zsh hackers list References: <29441.1087232105@trentino.logica.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Pleyades X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Hi Bart :) * Bart Schaefer 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/