The following commit has been merged in the master branch:
commit 93f786c6fdb0143c9a02502855487c01799a55b1
Author: Ville Skyttä <[email protected]>
Date:   Sat Aug 20 09:49:46 2011 +0300

    ipsec: Cosmetic tweaks.

diff --git a/completions/ipsec b/completions/ipsec
index dd75796..677e1e0 100644
--- a/completions/ipsec
+++ b/completions/ipsec
@@ -7,11 +7,10 @@ have ipsec || return
 # Reads a file from stdin in the ipsec.conf(5) format.
 _ipsec_connections()
 {
-    COMPREPLY=()
     local keyword name
     while read -r keyword name; do
         if [[ $keyword = [#]* ]]; then continue; fi
-        [[ $keyword = 'conn' && $name != '%default' ]] && COMPREPLY+=("$name")
+        [[ $keyword == conn && $name != '%default' ]] && COMPREPLY+=( "$name" )
     done
     COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
 }

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to