* bug: completion in _initd: forcereload instead of force-reload
@ 2006-10-10 0:25 arno.
0 siblings, 0 replies; only message in thread
From: arno. @ 2006-10-10 0:25 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 938 bytes --]
Hi,
when I try to launch an init script with argument force-reload,
completion is broken. ex:
/etc/init.d/kdm forc
<TAB>
/etc/init.d/kdm forcereload
(instead of force-reload).
_initd completion script has a list of possible arguments, finds
matching lines and deletes everything except : [^a-z_]
It finds "force-reload" well, but then removes the dash in that token.
When using [^-a-z_], problem seems to be solved.
Here is my solution as a patch
arno
Index: Completion/Unix/Command/_init_d
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_init_d,v
retrieving revision 1.6
diff -r1.6 _init_d
18c18
< cmds=( ${${(j:|:s:|:)${(M)${(f)"$(< $script)"}:#[[:blank:]]#(\'|)${~what}(\|${~what})#(\'|)\)}}//[^a-z_]} )
---
> cmds=( ${${(j:|:s:|:)${(M)${(f)"$(< $script)"}:#[[:blank:]]#(\'|)${~what}(\|${~what})#(\'|)\)}}//[^-a-z_]} )
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-10 0:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 0:25 bug: completion in _initd: forcereload instead of force-reload arno.
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).