Use compgen -W in openssl sections completion.
This commit is contained in:
parent
4fce537000
commit
7d19d2a106
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user