diff options
Diffstat (limited to 'completions/gcc')
-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 |