diff --git a/bash_completion b/bash_completion index 146b4124..2a0ed7f3 100644 --- a/bash_completion +++ b/bash_completion @@ -3569,7 +3569,8 @@ _openssl_sections() fi [ ! -f "$config" ] && return 0 - COMPREPLY=( $( awk '/\[.*\]/ {print $2} ' $config | grep "^$cur" ) ) + COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \ + -- $cur ) ) } _openssl() diff --git a/to_review/openssl b/to_review/openssl index 1a04d9b3..39039539 100644 --- a/to_review/openssl +++ b/to_review/openssl @@ -26,7 +26,8 @@ _openssl_sections() [ ! -f "$config" ] && return 0 - COMPREPLY=( $( awk '/\[.*\]/ {print $2} ' $config | grep "^$cur" ) ) + COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \ + -- $cur ) ) } _openssl()