[Bash-completion-commits] [SCM] bash-completion branch, master, updated. db7d2833df260ed6aede1583082f6e27a3a89af6

Ville Skyttä ville.skytta at iki.fi
Tue Nov 3 22:24:43 UTC 2009


The following commit has been merged in the master branch:
commit ef4633101244d8778a71da3054f4a0b2112d304c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Nov 3 23:36:01 2009 +0200

    Fix service argument completion.

diff --git a/CHANGES b/CHANGES
index 79cf995..2ed5855 100644
--- a/CHANGES
+++ b/CHANGES
@@ -19,8 +19,8 @@ bash-completion (2.x)
   * Apply cardctl completion to pccardctl too.
   * Apply pine completion to alpine too.
   * Remove many unnecessary short option completions where long ones exist.
-  * Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, and ssh
-    completions.
+  * Improve configure, cvs, gkrellm, lftp, mdadm, mysqladmin, service, and
+    ssh completions.
   * Add abook and wtf completion, based on work by Raphaël Droz.
   * Add k3b and lftpget completion.
   * Don't overwrite other host completions when completing from multiple
diff --git a/bash_completion b/bash_completion
index b23fde0..3bade05 100644
--- a/bash_completion
+++ b/bash_completion
@@ -768,7 +768,7 @@ _service()
         _services
     else
         COMPREPLY=( $( compgen -W '`sed -ne "y/|/ /; \
-        s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\1/p" \
+        s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \
         $sysvdir/${prev##*/} 2>/dev/null`' -- "$cur" ) )
     fi
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list