rpms/bash-completion/devel bash-completion-20060301-debian.patch, NONE, 1.1 bash-completion-20060301-scp-apos-217178.patch, NONE, 1.1 bash-completion.spec, 1.17, 1.18

Ville Skytta (scop) fedora-extras-commits at redhat.com
Tue Feb 27 23:39:15 UTC 2007


Author: scop

Update of /cvs/extras/rpms/bash-completion/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32163/devel

Modified Files:
	bash-completion.spec 
Added Files:
	bash-completion-20060301-debian.patch 
	bash-completion-20060301-scp-apos-217178.patch 
Log Message:
* Wed Feb 28 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060301-3
- Fix scp with single quotes (#217178).
- Borrow fix for bzip2 w/spaces, and apropos and whatis support from Debian.


bash-completion-20060301-debian.patch:

--- NEW FILE bash-completion-20060301-debian.patch ---
--- bash_completion~	2007-02-28 01:11:44.000000000 +0200
+++ bash_completion	2007-02-28 01:11:44.000000000 +0200
@@ -806,7 +806,7 @@
 [ $UNAME = GNU -o $UNAME = Linux -o $UNAME = Darwin \
   -o $UNAME = FreeBSD -o $UNAME = SunOS -o $UNAME = Cygwin \
   -o $UNAME = OpenBSD ] && \
-complete -F _man $filenames man
+complete -F _man $filenames man apropos whatis
 
 # renice(8) completion
 #
@@ -3325,7 +3323,7 @@
 have bzip2 &&
 _bzip2()
 {
-	local cur prev xspec
+	local cur prev xspec IFS=$'\t\n'
 
 	COMPREPLY=()
 	cur=${COMP_WORDS[COMP_CWORD]}

bash-completion-20060301-scp-apos-217178.patch:

--- NEW FILE bash-completion-20060301-scp-apos-217178.patch ---
--- bash_completion~	2006-03-01 18:20:18.000000000 +0200
+++ bash_completion	2006-12-26 14:01:59.000000000 +0200
@@ -2589,6 +2589,7 @@
 		COMPREPLY=( $( ssh -o 'Batchmode yes' $userhost \
 			       command ls -aF1d "$path*" 2>/dev/null | \
 			       sed -e 's/[][(){}<>",:;^&!$&=?`|\ ]/\\\\\\&/g' \
+				   -e "s/'/\\\\\\\\\\\\&/g" \
 				   -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
 		return 0
 	fi
@@ -2597,6 +2598,7 @@
 		COMPREPLY=( ${COMPREPLY[@]} $( command ls -aF1d $cur* \
 			    2>/dev/null | sed \
 			    -e 's/[][(){}<>",:;^&!$&=?`|\ ]/\\&/g' \
+			    -e "s/'/\\\\&/g" \
 			    -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
 	return 0
 }


Index: bash-completion.spec
===================================================================
RCS file: /cvs/extras/rpms/bash-completion/devel/bash-completion.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- bash-completion.spec	30 Aug 2006 21:27:32 -0000	1.17
+++ bash-completion.spec	27 Feb 2007 23:38:43 -0000	1.18
@@ -1,6 +1,6 @@
 Name:           bash-completion
 Version:        20060301
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Programmable completion for Bash
 
 Group:          System Environment/Shells
@@ -10,6 +10,8 @@
 Source2:        %{name}-mock
 Source3:        %{name}-repomanage
 Source4:        %{name}-plague-client
+Patch0:         %{name}-20060301-scp-apos-217178.patch
+Patch1:         %{name}-20060301-debian.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -22,6 +24,8 @@
 
 %prep
 %setup -q -n bash_completion
+%patch0
+%patch1
 f=Changelog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
 install -pm 644 %{SOURCE2} contrib/mock
 install -pm 644 %{SOURCE3} contrib/plague-client
@@ -96,6 +100,10 @@
 
 
 %changelog
+* Wed Feb 28 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060301-3
+- Fix scp with single quotes (#217178).
+- Borrow fix for bzip2 w/spaces, and apropos and whatis support from Debian.
+
 * Thu Aug 31 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060301-2
 - Trigger-install support for gcl, lilypond, mercurial and svk.
 - Improve mock completion a bit.




More information about the fedora-extras-commits mailing list