[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-418-g1de06f5

Ville Skyttä ville.skytta at iki.fi
Mon Aug 15 21:27:43 UTC 2011


The following commit has been merged in the master branch:
commit 4bfb42e6270edae9e3e07dd38da56c7fb1b6deeb
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Aug 16 00:24:28 2011 +0300

    openssl: Drop unnecessary tr invocation.

diff --git a/completions/openssl b/completions/openssl
index fd76c05..68eaa16 100644
--- a/completions/openssl
+++ b/completions/openssl
@@ -94,8 +94,8 @@ _openssl()
                 return 0
                 ;;
             -cipher)
-                COMPREPLY=( $( compgen -W "$(openssl ciphers | \
-                    tr ':' '\n')" -- "$cur" ) )
+                COMPREPLY=( $( IFS=: compgen -W "$( openssl ciphers )" \
+                    -- "$cur" ) )
                 return 0
                 ;;
         esac
diff --git a/test/lib/completions/openssl.exp b/test/lib/completions/openssl.exp
index 25fc136..d135700 100644
--- a/test/lib/completions/openssl.exp
+++ b/test/lib/completions/openssl.exp
@@ -25,4 +25,8 @@ expect {
 sync_after_int
 
 
+assert_complete_any "openssl pkey -cipher "
+sync_after_int
+
+
 teardown

-- 
bash-completion



More information about the Bash-completion-commits mailing list