diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-09-07 08:39:20 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-09-07 08:39:20 +0000 |
commit | 0fe98894a8a40b0021d7863be9f47df91ad1e28f (patch) | |
tree | 9a6061fd635b39a529f59b7fd9c0707c4d896f4c /Completion/User/_gcc | |
parent | cceb4703de6973b51bfc7404f00ac9c026d415aa (diff) | |
download | zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.tar.gz zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.tar.xz zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.zip |
stick some `N's into glob patterns (12768)
Diffstat (limited to 'Completion/User/_gcc')
-rw-r--r-- | Completion/User/_gcc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/User/_gcc b/Completion/User/_gcc index bf92efdc2..92fff6a3d 100644 --- a/Completion/User/_gcc +++ b/Completion/User/_gcc @@ -1,7 +1,7 @@ #compdef gcc -local state line ret=1 expl args -typeset -A options +local curcontext="$curcontext" state line ret=1 expl args +typeset -A opt_args args=() case $MACHTYPE in @@ -163,7 +163,7 @@ h8/300) esac -_arguments -M 'L:|-{fW}no-=-{fW} r:|[_-]=* r:|=*' \ +_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' \ @@ -273,8 +273,8 @@ dump) 'p[annotate assembler output]' && ret=0 ;; library) - _description expl library - compadd "$expl[@]" - ${^=LD_LIBRARY_PATH:-/usr/lib /usr/local/lib}/lib*.(a|so*)(:t:fr:s/lib//) && ret=0 + _wanted libraries expl library \ + compadd - ${^=LD_LIBRARY_PATH:-/usr/lib /usr/local/lib}/lib*.(a|so*)(N:t:fr:s/lib//) && ret=0 ;; esac |