[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1453625e5010d67f5b4b705f36abf06708162980

Ville Skyttä ville.skytta at iki.fi
Sun Sep 27 07:19:03 UTC 2009


The following commit has been merged in the master branch:
commit 1453625e5010d67f5b4b705f36abf06708162980
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Sep 27 10:18:43 2009 +0300

    Prevent rpm --define/-D completions from falling through.

diff --git a/CHANGES b/CHANGES
index 5f9e55c..936d8b0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -127,6 +127,7 @@ bash-completion (1.x)
   * Fix sbcl file/dirname completion (Debian: #545743).
   * Add /sbin to $PATH when invoking lspci and lsusb.
   * Support .xz suffix in info page completions.
+  * Prevent rpm --define/-D completions from falling through.
 
   [ Todd Zullinger ]
   * Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/contrib/rpm b/contrib/rpm
index a100a5e..a9c7d24 100644
--- a/contrib/rpm
+++ b/contrib/rpm
@@ -141,6 +141,10 @@ _rpm()
 		's/^\s*compatible\s\+build\s\+archs\s*:\s*\(.*\)/\1/ p' )" -- "$cur" ) )
 		return 0
 		;;
+	--define|-D)
+		# argument required but no completions available
+		return 0
+		;;
 	esac
 
 	case "${COMP_WORDS[1]}" in

-- 
bash-completion



More information about the Bash-completion-commits mailing list