From 63b336243fdf5e60058472fa456ed11e75280189 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 21 Jan 2004 13:53:28 +0000 Subject: 19387: add (-.) glob qualifier to globs where only files are directly applicable --- Completion/Unix/Command/_gcc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion/Unix/Command/_gcc') diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index 6f105155d..c5287473d 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -13,7 +13,7 @@ if [[ "$service" = -value-* ]]; then args2=() fi else - args2=( '*:input file:_files -g \*.\(\[cCmisSoak\]\|cc\|cxx\|ii\|k\[ih\]\)' ) + args2=( '*:input file:_files -g "*.([cCmisSoak]|cc|cxx|ii|k[ih])(-.)"' ) fi args=() @@ -179,7 +179,7 @@ esac _arguments -C -M 'L:|-{fW}no-=-{fW} r:|[_-]=* r:|=*' \ "$args[@]" \ -c -S -E -v -a -w -C -H -P -s '(-pg)-p' '(-p)-pg' \ - '-o:output file:_files -g \^\*.\(c\|h\|cc\|C\|cxx\)' \ + '-o:output file:_files -g "^*.(c|h|cc|C|cxx)(-.)"' \ '-x:input file language:(c objective-c c++ c-header cpp-output c++-cpp-output assembler assembler-with-cpp none)' \ '+e-:virtual function definitions in classes:((0\:only\ interface 1\:generate\ code))' \ '-d-:dump:->dump' \ @@ -202,8 +202,8 @@ _arguments -C -M 'L:|-{fW}no-=-{fW} r:|[_-]=* r:|=*' \ '-V:gcc version:' \ '-print-file-name=:library:->library' \ '-print-prog-name=:program:' \ - '*-include:include file:_files -g \*.h' \ - '*-imacros:macro input file:_files -g \*.h' \ + '*-include:include file:_files -g \*.h\(-.\)' \ + '*-imacros:macro input file:_files -g \*.h\(-.\)' \ '*-idirafter:second include path directory:_files -/' \ '*-iprefix:prefix:_files' \ '*-iwithprefix:second include path directory:_files -/' \ -- cgit 1.4.1