Use compgen -W in openssl sections completion.

This commit is contained in:
Ville Skyttä 2009-05-10 20:16:09 +03:00
parent 4fce537000
commit 7d19d2a106
2 changed files with 4 additions and 2 deletions

View File

@ -3569,7 +3569,8 @@ _openssl_sections()
fi fi
[ ! -f "$config" ] && return 0 [ ! -f "$config" ] && return 0
COMPREPLY=( $( awk '/\[.*\]/ {print $2} ' $config | grep "^$cur" ) ) COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \
-- $cur ) )
} }
_openssl() _openssl()

View File

@ -26,7 +26,8 @@ _openssl_sections()
[ ! -f "$config" ] && return 0 [ ! -f "$config" ] && return 0
COMPREPLY=( $( awk '/\[.*\]/ {print $2} ' $config | grep "^$cur" ) ) COMPREPLY=( $( compgen -W "$( awk '/\[.*\]/ {print $2}' $config )" \
-- $cur ) )
} }
_openssl() _openssl()