gcc: Remove unnecessary calls to tr and sort.

This commit is contained in:
Igor Murzov 2011-12-20 00:14:40 +04:00
parent 3be0b26581
commit f17f31057f

View File

@ -39,9 +39,8 @@ _gcc()
# for C/C++/ObjectiveC it's useless # for C/C++/ObjectiveC it's useless
# for FORTRAN/Java it's an error # for FORTRAN/Java it's an error
COMPREPLY=( $( compgen -W "$( $cc --help 2>/dev/null | \ COMPREPLY=( $( compgen -W "$( $cc --help 2>/dev/null | \
tr '\t' ' ' | \ sed -e 's/\t/ /g' -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/' )" \
sed -e '/^ *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/' | \ -- "$cur" ) )
sort -u )" -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace [[ $COMPREPLY == *= ]] && compopt -o nospace
else else
_filedir _filedir