[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-385-gccb8c91

Ville Skyttä ville.skytta at iki.fi
Sat Jun 18 20:29:09 UTC 2011


The following commit has been merged in the master branch:
commit ccb8c91803ad4b7049a9d7d31c763df0c1e62b04
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jun 18 23:26:57 2011 +0300

    service: Always include start and stop in service command completions.
    
    Not all services are in /etc/init.d files (such as systemd ones) from
    which command completions can be parsed from.

diff --git a/completions/service b/completions/service
index 515c6d1..82badde 100644
--- a/completions/service
+++ b/completions/service
@@ -22,7 +22,7 @@ _service()
             sysvdir=/etc/rc.d/init.d || sysvdir=/etc/init.d
         COMPREPLY=( $( compgen -W '`sed -e "y/|/ /" \
             -ne "s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \
-            $sysvdir/${prev##*/} 2>/dev/null`' -- "$cur" ) )
+            $sysvdir/${prev##*/} 2>/dev/null` start stop' -- "$cur" ) )
     fi
 
     return 0

-- 
bash-completion



More information about the Bash-completion-commits mailing list