From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23457 invoked from network); 26 Feb 2001 14:31:58 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Feb 2001 14:31:58 -0000 Received: (qmail 25459 invoked by alias); 26 Feb 2001 14:31:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13535 Received: (qmail 25448 invoked from network); 26 Feb 2001 14:31:52 -0000 X-Authentication-Warning: godzilla.phydeaux.org: fletch set sender to fletch@phydeaux.org using -f Sender: fletch@phydeaux.org To: Sven Wischnowsky Cc: zsh-workers@sunsite.dk Subject: Re: completion function for apachectl References: <200102261013.LAA28626@beta.informatik.hu-berlin.de> From: Fletch Organization: Very Little Date: 26 Feb 2001 09:31:33 -0500 In-Reply-To: Sven Wischnowsky's message of "Mon, 26 Feb 2001 11:13:19 +0100 (MET)" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/20.4 (Emerald) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> "Sven" == Sven Wischnowsky writes: Sven> Fletch wrote: >> This completes for apachectl (a utility that comes with apache >> to do things such as restarting apache, syntax checking it's >> configuration file, and the like). Sven> Thanks for writing a new completion function. [... Brutal savaging of my version choped :) ] Thanks for critiquing it. It was rather cargo cultish and hacked together from the bits and pieces of whatever looked similar to what I was trying to do. I better go re-read that section of the guide a couple more times. Sven> Hm. Since there are several commands (and scripts[1]) that Sven> only get one command as argument, I'm almost tempted to add Sven> a generic version of the above as a utility Sven> function. Opinions? Sven> Bye Sven Sven> [1] Wasn't there a request for init-script completion on the Sven> debian list? I've been frustrated that TAB doesn't Do What I Mean for stuff in /etc/rc.d/init.d several times. You almost could generate it on the fly with a for over /etc/rc.d/init.d/*, maybe with a style for things that take strange arguments other than start or stop. -- Fletch | "If you find my answers frightening, __`'/| fletch@phydeaux.org | Vincent, you should cease askin' \ o.O' 770 933-0600 x211(w) | scary questions." -- Jules =(___)= | U