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/Redhat/Command/_rpm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Redhat') diff --git a/Completion/Redhat/Command/_rpm b/Completion/Redhat/Command/_rpm index f274975fe..284ecab6b 100644 --- a/Completion/Redhat/Command/_rpm +++ b/Completion/Redhat/Command/_rpm @@ -172,10 +172,10 @@ _rpm () { '*:package:->package' && ret=0 ;; build_b) - tmp=( '*:spec file:_files -g \*.spec' ) + tmp=( '*:spec file:_files -g "*.spec(-.)"' ) ;& build_t) - (( $#tmp )) || tmp=( '*:tar file:_files -g \*.\(\#i\)tar\(.\*\|\)' ) + (( $#tmp )) || tmp=( '*:tar file:_files -g "*.(#i)tar(.*|)(-.)"' ) _arguments -s \ "${commonopts[@]}" "${pathopts[@]}" \ @@ -258,21 +258,21 @@ _rpm () { ;; spec_files) _wanted specfiles expl 'spec file' \ - _files -g \*.spec && ret=0 + _files -g '*.spec(-.)' && ret=0 ;; package_file) _wanted files expl 'package file' \ - _files -g '*.(#i)rpm' && ret=0 + _files -g '*.(#i)rpm(-.)' && ret=0 if [[ -prefix 1 (f|ht)tp:// ]]; then _wanted urls expl 'URL of rpm package file' \ - _urls -f -g '*.(#i)rpm' "${expl[@]}" && ret=0 + _urls -f -g '*.(#i)rpm(-.)' "${expl[@]}" && ret=0 else _wanted urls expl 'URL of rpm package file' \ compadd -S '' "${expl[@]}" ftp:// http:// && ret=0 fi ;; package_src) - _files -g "(#i)*.src.rpm" && ret=0 + _files -g '(#i)*.src.rpm(-.)' && ret=0 ;; tags) local -a suf -- cgit 1.4.1