[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-107-g08a2264
Igor Murzov
e-mail at date.by
Tue Dec 20 16:10:31 UTC 2011
The following commit has been merged in the master branch:
commit f17f31057fc2df7a1d0c60ca81f400905ccd41bb
Author: Igor Murzov <e-mail at date.by>
Date: Tue Dec 20 00:14:40 2011 +0400
gcc: Remove unnecessary calls to `tr` and `sort`.
diff --git a/completions/gcc b/completions/gcc
index a1f8c0a..9dc21c7 100644
--- a/completions/gcc
+++ b/completions/gcc
@@ -39,9 +39,8 @@ _gcc()
# for C/C++/ObjectiveC it's useless
# for FORTRAN/Java it's an error
COMPREPLY=( $( compgen -W "$( $cc --help 2>/dev/null | \
- tr '\t' ' ' | \
- sed -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/' | \
- sort -u )" -- "$cur" ) )
+ sed -e 's/\t/ /g' -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/' )" \
+ -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
else
_filedir
--
bash-completion
More information about the Bash-completion-commits
mailing list