[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-424-g93f786c

Ville Skyttä ville.skytta at iki.fi
Sat Aug 20 06:50:16 UTC 2011


The following commit has been merged in the master branch:
commit 93f786c6fdb0143c9a02502855487c01799a55b1
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list