[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 7d19d2a106d11611c59c944d6897e399a127d410
Ville Skyttä
ville.skytta at iki.fi
Sun May 10 17:16:16 UTC 2009
The following commit has been merged in the master branch:
commit 7d19d2a106d11611c59c944d6897e399a127d410
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun May 10 20:16:09 2009 +0300
Use compgen -W in openssl sections completion.
diff --git a/bash_completion b/bash_completion
index 146b412..2a0ed7f 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 1a04d9b..3903953 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()
--
bash-completion
More information about the Bash-completion-commits
mailing list