Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _init_d



Hi (busy today ;-)

A small fixlet for something I found myself. Completion after, e.g.
/etc/init.d/mysql completed mysql-stuff, not what I expected. That's
because _init_d used a post-pattern. I think the pattern is specific
enough to allow it to be a pre-pattern.

Bye
  Sven

Index: Completion/Unix/Command/_init_d
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_init_d,v
retrieving revision 1.3
diff -u -r1.3 _init_d
--- Completion/Unix/Command/_init_d	8 May 2002 09:18:13 -0000	1.3
+++ Completion/Unix/Command/_init_d	21 May 2002 07:56:53 -0000
@@ -1,6 +1,8 @@
-#compdef -P */(init|rc[0-9S]#).d/*
+#compdef -p */(init|rc[0-9S]#).d/*
 
 local magic cmds what script
+
+_compskip=all
 
 # This should probably be system specific...
 

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author