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

Guillaume Rousse guillomovitch at zarb.org
Wed May 20 23:42:44 UTC 2009


The following commit has been merged in the master branch:
commit 0d12edb64bdc740220be232337e9238ba15f2a30
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date:   Thu May 21 01:22:24 2009 +0200

    drop last piece of openssl completion

diff --git a/bash_completion b/bash_completion
index b83f403..4c3655f 100644
--- a/bash_completion
+++ b/bash_completion
@@ -3468,31 +3468,6 @@ _mysqladmin()
 } &&
 complete -F _mysqladmin mysqladmin
 
-# openssl(1) completion
-#
-have openssl && {
-_openssl_sections()
-{
-	local config f
-
-	for (( i=2; i < COMP_CWORD; i++ )); do
-		if [[ "${COMP_WORDS[i]}" == -config ]]; then
-			config=${COMP_WORDS[i+1]}
-			break
-		fi
-	done
-	if [ -z "$config" ]; then
-		for f in /etc/ssl/openssl.cnf /etc/pki/tls/openssl.cnf \
-			/usr/share/ssl/openssl.cnf; do
-			[ -f $f ] && config=$f && break
-		done
-	fi
-	[ ! -f "$config" ] && return 0
-
-	COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \
-		-- $cur ) )
-}
-
 _longopt()
 {
 	local cur prev

-- 
bash-completion



More information about the Bash-completion-commits mailing list