about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xCompletion/User/_init_d4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 58553d6a2..f573bab1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-18  Clint Adams  <schizo@debian.org>
+
+	* 13664: Completion/User/_init_d: handle rcS.d, force-restart,
+	force-reload.
+
 2001-03-18  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
 	* From Zvi Har'El: unposted: Doc/Zsh/metafaq.yo: shorter
diff --git a/Completion/User/_init_d b/Completion/User/_init_d
index 239388591..93065cd80 100755
--- a/Completion/User/_init_d
+++ b/Completion/User/_init_d
@@ -1,4 +1,4 @@
-#compdef -P */(init|rc[0-9]#).d/*
+#compdef -P */(init|rc[0-9S]#).d/*
 
 local magic cmds what
 
@@ -7,7 +7,7 @@ local magic cmds what
 # If the file starts with `#!' we hope that this is a shell script
 # and get lines looking like <space>foo|bar) with the words in $what.
 
-what='(st(art|op|atus)|re(start|load)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)'
+what='(st(art|op|atus)|(force-|)re(start|load)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)'
 
 read -u0k 2 magic < $words[1] && [[ $magic = '#!' ]] &&
     cmds=( ${${(j:|:s:|:)${(M)${(f)"$(< $words[1])"}:#[[:blank:]]#(\'|)${~what}(|${~what})#(\'|)\)}}//[^a-z_]} )