[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-71-gf0a9128

Ville Skyttä ville.skytta at iki.fi
Tue Apr 12 20:53:03 UTC 2011


The following commit has been merged in the master branch:
commit f0a912864957d5e4c713f6ed7225000e527d5b07
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Apr 12 23:45:02 2011 +0300

    Don't install completions for init.d backup files.

diff --git a/CHANGES b/CHANGES
index 756c1d6..882c258 100644
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,7 @@ bash-completion (2.x)
   * Install only full path (no basename) completions for /etc/init.d/*.
   * Install full path /etc/rc.d/init.d/* completions.
   * Try both full path and basename completions for sudo etc (Alioth: #313065).
+  * Don't install completions for init.d backup files.
 
   [ Guillaume Rousse ]
   * added puppet completion, using work from Mathieu Parent (sathieudebian.org)
diff --git a/completions/service b/completions/service
index a2a28a5..f45c530 100644
--- a/completions/service
+++ b/completions/service
@@ -29,7 +29,7 @@ _service()
     return 0
 } &&
 complete -F _service service
-for svc in /etc/init.d/* /etc/rc.d/init.d/*; do
+for svc in /etc/init.d/!($_backup_glob) /etc/rc.d/init.d/!($_backup_glob); do
     [ -x "$svc" ] && complete -F _service $svc
 done
 unset svc

-- 
bash-completion



More information about the Bash-completion-commits mailing list