about summary refs log tree commit diff
path: root/Completion/Redhat
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-01-21 13:53:28 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-01-21 13:53:28 +0000
commit63b336243fdf5e60058472fa456ed11e75280189 (patch)
treef101df4260c4cef5d32c63456ca98e23d6b54449 /Completion/Redhat
parent1b530bf152e1ca8c9c135c58a4753899d68db8e4 (diff)
downloadzsh-63b336243fdf5e60058472fa456ed11e75280189.tar.gz
zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.xz
zsh-63b336243fdf5e60058472fa456ed11e75280189.zip
19387: add (-.) glob qualifier to globs where only files are directly applicable
Diffstat (limited to 'Completion/Redhat')
-rw-r--r--Completion/Redhat/Command/_rpm12
1 files changed, 6 insertions, 6 deletions
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