From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23962 invoked by alias); 22 Apr 2016 20:50:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21479 Received: (qmail 16841 invoked from network); 22 Apr 2016 20:50:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FSL_HELO_BARE_IP_2, RCVD_NUMERIC_HELO,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.1 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: adding configtest to service httpd options Date: Fri, 22 Apr 2016 20:49:54 +0000 (UTC) Organization: Your Company Message-ID: References: <160421180453.ZM18158@torch.brasslantern.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 95.146.95.161 User-Agent: Xnews/2009.05.01 X-Antivirus: avast! (VPS 160422-1, 22/04/2016), Outbound message X-Antivirus-Status: Clean Bart Schaefer wrote in news:160421180453.ZM18158@torch.brasslantern.com: > On Apr 21, 4:57pm, zzapper wrote: > } > } Thought I'd just have to add configtest to a list in a function > definition } file _init_d _service etc but no luck > > > You need to change the assignment what='(...)' to add configtest to > the alternatives. > > There is a more general pattern [that doesn't require a specific set > of words to check] in a comment in _init_d, but as noted there, it may > match things that are not actually valid actions. > > Yep can't get this to work , but not a big priority . Are you implying that the completions only allow for standard actions and not optionals like configtest which may not be used by all versions of httpd? -- zzapper https://twitter.com/dailyzshtip --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus