From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5481 invoked from network); 4 May 2000 15:17:01 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 May 2000 15:17:01 -0000 Received: (qmail 17582 invoked by alias); 4 May 2000 15:14:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11156 Received: (qmail 17542 invoked from network); 4 May 2000 15:14:44 -0000 From: "Bart Schaefer" Message-Id: <1000504151422.ZM22851@candle.brasslantern.com> Date: Thu, 4 May 2000 15:14:22 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "Re: PATCH: Re: sudo completion problem" (May 4, 9:02pm) References: <000601bfb599$a9219f80$21c9ca95@mow.siemens.ru> <200005041340.PAA08620@beta.informatik.hu-berlin.de> In-Reply-To: <200005041340.PAA08620@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: Re: sudo completion problem" (May 4, 3:40pm) X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Completing for "find" and _regex_arguments (Re: PATCH: Re: sudo completion problem) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 4, 9:02pm, Tanaka Akira wrote: } Subject: Re: PATCH: Re: sudo completion problem } } In article <000601bfb599$a9219f80$21c9ca95@mow.siemens.ru>, } "Andrej Borsenkow" writes: } } > So, the question is - how useful would it be to allow "named, } > structured, ..." arguments? The point is, description vs. shell code. } } We need intermediate solution for a completion function of such } commands: more powerful than _arguments and easier than shell } function. But more difficult than _arguments, maybe. } } My idea is already implemented: _regex_arguments. Indeed, I think _regex_arguments is just the thing here. In fact, I said so, back in 11018. On May 4, 3:40pm, Sven Wischnowsky wrote: } Subject: Re: PATCH: Re: sudo completion problem } } Personally I find _arguments a whole lot more readable than } _regex_arguments. If that could be improved, I'd be glad. Is there any chance that it could now be rewritten using extendedglob patterns, rather than parsing its own RE syntax? On the other hand, that might not make it any more readable. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com