The following commit has been merged in the master branch:
commit 4bfb42e6270edae9e3e07dd38da56c7fb1b6deeb
Author: Ville Skyttä <[email protected]>
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

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

Reply via email to