diff options
author | Igor Murzov <e-mail@date.by> | 2011-12-20 00:14:40 +0400 |
---|---|---|
committer | Igor Murzov <e-mail@date.by> | 2011-12-20 19:56:36 +0400 |
commit | f17f31057fc2df7a1d0c60ca81f400905ccd41bb (patch) | |
tree | 73a50a9c88d6db7d1606666957d60d550a79f327 | |
parent | 3be0b2658178c3d8d17f16c0a42f2fc08a4086f3 (diff) | |
download | bash-completion-f17f31057fc2df7a1d0c60ca81f400905ccd41bb.tar.gz |
gcc: Remove unnecessary calls to `tr` and `sort`.
-rw-r--r-- | completions/gcc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/completions/gcc b/completions/gcc index a1f8c0a3..9dc21c74 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 |