Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 0305113317f9e80328b139dce3f45533 > files > 11

python-quantumclient-2.1-1.fc18.src.rpm

From 97b5e16df16b5a74fc43b5897940360c81e14222 Mon Sep 17 00:00:00 2001
From: Akihiro MOTOKI <motoki@da.jp.nec.com>
Date: Sat, 8 Dec 2012 03:28:45 +0900
Subject: [PATCH] Fix a wrong substition for '-h' in bash completion

Fixes bug #1087806

Change-Id: Id39cac821922ca6adea296335f2395fabb011754
---
 tools/quantum.bash_completion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/quantum.bash_completion b/tools/quantum.bash_completion
index 45db025..311f533 100644
--- a/tools/quantum.bash_completion
+++ b/tools/quantum.bash_completion
@@ -9,7 +9,7 @@ _quantum()
 	prev="${COMP_WORDS[COMP_CWORD-1]}"
 
 	if [ "x$_quantum_opts" == "x" ] ; then
-		nbc="`quantum bash-completion | sed -e "s/\s-h\s/\s/"`"
+		nbc="`quantum bash-completion`"
 		_quantum_opts="`echo "$nbc" | sed -e "s/--[a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
 		_quantum_flags="`echo " $nbc" | sed -e "s/ [^-][^-][a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
 		_quantum_opts_exp="`echo "$_quantum_opts" | sed -e "s/\s/|/g"`"