From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5241 invoked by alias); 23 Apr 2016 21:36:15 -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: 21482 Received: (qmail 7845 invoked from network); 23 Apr 2016 21:36:14 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Date: Sat, 23 Apr 2016 21:36:12 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: adding configtest to service httpd options Message-ID: <20160423213612.GA7021@tarsus.local2> References: <160421180453.ZM18158@torch.brasslantern.com> <160422154422.ZM2884__39944.5106079385$1461365132$gmane$org@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <160422154422.ZM2884__39944.5106079385$1461365132$gmane$org@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Fri, Apr 22, 2016 at 15:44:22 -0700: > This is a situation in which a "good enough" generic completion was > created and special cases are *way* outside of what it covers; there > is no simple correction. It would have been possible to use the 'fake' style to add the 'cnofigtest' completion if the service name ("httpd") were in the context; but it is not: % service httpd <_complete_help> tags in context :completion::complete:service:: argument-rest (_arguments _service) - Perhaps the context should be ...:service-httpd:... ? - Alternatively, does CentOS provide some kind of help output listing the valid commands? On some OSes, «/etc/init.d/${service} invalidargument» does that.