From f17f31057fc2df7a1d0c60ca81f400905ccd41bb Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Tue, 20 Dec 2011 00:14:40 +0400 Subject: [PATCH] gcc: Remove unnecessary calls to `tr` and `sort`. --- completions/gcc | 5 ++--- 1 file 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