From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: adding configtest to service httpd options
Date: Fri, 22 Apr 2016 15:44:22 -0700 [thread overview]
Message-ID: <160422154422.ZM2884@torch.brasslantern.com> (raw)
In-Reply-To: <XnsA5F2DE187A748davidrayninfocouk@80.91.229.13>
On Apr 22, 8:49pm, zzapper wrote:
} Subject: Re: adding configtest to service httpd options
}
} Bart Schaefer <schaefer@brasslantern.com> wrote in
} news:160421180453.ZM18158@torch.brasslantern.com:
}
} > You need to change the assignment what='(...)' to add configtest to
} > the alternatives.
} >
} Yep can't get this to work , but not a big priority .
Ah. Hadn't actually looked closely at /etc/init.d/httpd, there is a
bit more to the issue than I thought.
} 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?
I'm implying that the completions only allow for the actions that are
supported generically by any/all [or at least most] scripts to be
found in /etc/init.d, and that /etc/init.d/httpd adds several that are
unique. If you attempt to complete after "service foo", then _init_d
looks for /etc/init.d/foo -- and if it finds it, it scans through that
file looking for "case" branches matching start, stop, status, etc.
It then offers whichever case-branches it finds as the completions.
/etc/init.d/httpd not only has case-branches that _init_d is not even
looking for, it also has case-branches that use syntax that the case-
branch search in _init_d won't match even if looking for the correct
words. _init_d wants every case to look like " start)" or " stop)"
etc., but http has " graceful|help|configtest|fullstatus)" all in
one combined branch [at least in my copy]. _init_d is unprepared to
deal with that.
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.
next prev parent reply other threads:[~2016-04-22 22:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 16:57 zzapper
2016-04-22 1:04 ` Bart Schaefer
2016-04-22 20:49 ` zzapper
2016-04-22 22:44 ` Bart Schaefer [this message]
2016-04-23 18:11 ` zzapper
[not found] ` <160422154422.ZM2884__39944.5106079385$1461365132$gmane$org@torch.brasslantern.com>
2016-04-23 21:36 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160422154422.ZM2884@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).