summaryrefslogtreecommitdiff
path: root/contrib/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/gcc b/contrib/gcc
index a4f80952..3f5a5619 100644
--- a/contrib/gcc
+++ b/contrib/gcc
@@ -14,11 +14,11 @@ _gcc()
local cur cc backend
COMPREPLY=()
- cur=`_get_cword`
+ _get_comp_words_by_ref cur
_expand || return 0
- case "$1" in
+ case $1 in
gcj)
backend=jc1
;;
@@ -46,9 +46,9 @@ _gcc()
_filedir
fi
} &&
-complete $filenames -F _gcc gcc g++ c++ g77 gcj gpc
+complete -o filenames -F _gcc gcc g++ c++ g77 gcj gpc
[ $USERLAND = GNU -o $UNAME = Cygwin ] && \
-[ -n "${have:-}" ] && complete $filenames -F _gcc cc
+[ -n "${have:-}" ] && complete -o filenames -F _gcc cc
# Local variables:
# mode: shell-script