Blob Blame Raw
diff -up bash-completion-1.3/completions/service~ bash-completion-1.3/completions/service
--- bash-completion-1.3/completions/service~	2011-02-06 18:50:38.000000000 +0200
+++ bash-completion-1.3/completions/service	2013-04-02 17:23:13.705115463 +0300
@@ -14,12 +14,12 @@ _service()
 
     # don't complete for things like killall, ssh and mysql if it's
     # the standalone command, rather than the init script
-    [[ ${COMP_WORDS[0]} != @(*init.d/!(functions|~)|service) ]] && return 0
+    [[ ${COMP_WORDS[0]} != @(*init.d/!(functions|~)|?(*/)service) ]] && return 0
 
     # don't complete past 2nd token
     [ $COMP_CWORD -gt 2 ] && return 0
 
-    if [[ $COMP_CWORD -eq 1 && $prev == "service" ]]; then
+    if [[ $COMP_CWORD -eq 1 && $prev == ?(*/)service ]]; then
         _services
     else
         [ -d /etc/rc.d/init.d ] && \