rpms/bash-completion/devel bash-completion-1.0-bash4quoting-490322.patch, NONE, 1.1 bash-completion.spec, 1.38, 1.39

Ville Skyttä scop at fedoraproject.org
Tue Apr 7 19:04:53 UTC 2009


Author: scop

Update of /cvs/pkgs/rpms/bash-completion/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29603

Modified Files:
	bash-completion.spec 
Added Files:
	bash-completion-1.0-bash4quoting-490322.patch 
Log Message:
* Tue Apr  7 2009 Ville Skyttä <ville.skytta at iki.fi> - 1:1.0-2
- Apply upstream patch to fix quoting issues with bash 4.x (#490322).


bash-completion-1.0-bash4quoting-490322.patch:

--- NEW FILE bash-completion-1.0-bash4quoting-490322.patch ---
From: Mike Kelly <pioto at pioto.org>
Date: Thu, 2 Apr 2009 15:16:46 +0000 (-0400)
Subject: Fix _filedir on bash 4.
X-Git-Url: http://git.debian.org/?p=bash-completion%2Fbash-completion.git;a=commitdiff_plain;h=1421e55aac075e13491cd212b796bdd453214a2c

Fix _filedir on bash 4.

We don't need to double-quote things for compgen w/ bash 4. Just putting
each file in double quotes is sufficient.

See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html
---

diff --git a/bash_completion b/bash_completion
index 0246cd8..4d21cf8 100644
--- a/bash_completion
+++ b/bash_completion
@@ -209,6 +209,12 @@ quote()
 # results in the original argument
 quote_readline()
 {
+	if [[ "${BASH_VERSINFO[0]}" -ge 4 ]] ; then
+		# This function isn't really necessary on bash 4
+		# See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html
+		echo "${1}"
+		return
+	fi
 	local t="${1//\\/\\\\}"
 	echo \'${t//\'/\'\\\'\'}\' #'# Help vim syntax highlighting
 }


Index: bash-completion.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bash-completion/devel/bash-completion.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- bash-completion.spec	6 Apr 2009 18:07:53 -0000	1.38
+++ bash-completion.spec	7 Apr 2009 19:04:22 -0000	1.39
@@ -1,6 +1,6 @@
 Name:           bash-completion
 Version:        1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Epoch:          1
 Summary:        Programmable completion for Bash
 
@@ -11,6 +11,8 @@
 Source1:        %{name}-mock
 Source2:        %{name}-plague-client
 Source3:        %{name}-repomanage
+# http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=1421e55aac075e13491cd212b796bdd453214a2c
+Patch0:         %{name}-1.0-bash4quoting-490322.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -25,6 +27,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 install -pm 644 %{SOURCE1} contrib/mock
 install -pm 644 %{SOURCE2} contrib/plague-client
 install -pm 644 %{SOURCE3} contrib/repomanage
@@ -265,6 +268,9 @@
 
 
 %changelog
+* Tue Apr  7 2009 Ville Skyttä <ville.skytta at iki.fi> - 1:1.0-2
+- Apply upstream patch to fix quoting issues with bash 4.x (#490322).
+
 * Mon Apr  6 2009 Ville Skyttä <ville.skytta at iki.fi> - 1:1.0-1
 - 1.0.
 




More information about the fedora-extras-commits mailing list