From e985062a5f36130b52e172213b000ba160cab81c Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sep 22 2007 07:43:01 +0000 Subject: - Patch to improve perl completion (#299571, Jim Radford, http://use.perl.org/~Alias/journal/33508). --- diff --git a/bash-completion-20060301-perl-299571.patch b/bash-completion-20060301-perl-299571.patch new file mode 100644 index 0000000..f200017 --- /dev/null +++ b/bash-completion-20060301-perl-299571.patch @@ -0,0 +1,13 @@ +--- bash_completion~ 2007-09-22 10:35:56.000000000 +0300 ++++ bash_completion 2007-09-22 10:37:56.000000000 +0300 +@@ -5196,8 +5196,8 @@ + ;; + esac + +- # handle case where first parameter is not a dash option +- if [ $COMP_CWORD -eq 1 ] && [[ "$cur" != -* ]]; then ++ # handle non-dash options ++ if [[ "$cur" != -* ]]; then + _filedir + return 0 + fi diff --git a/bash-completion.spec b/bash-completion.spec index d18bf9e..8a805a1 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -1,6 +1,6 @@ Name: bash-completion Version: 20060301 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Programmable completion for Bash Group: System Environment/Shells @@ -12,6 +12,7 @@ Source3: %{name}-repomanage Source4: %{name}-plague-client Patch0: %{name}-20060301-scp-apos-217178.patch Patch1: %{name}-20060301-debian.patch +Patch2: %{name}-20060301-perl-299571.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -26,6 +27,7 @@ of the programmable completion feature of bash 2. %setup -q -n bash_completion %patch0 %patch1 +%patch2 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 @@ -182,6 +184,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Sep 22 2007 Ville Skyttä - 20060301-6 +- Patch to improve perl completion (#299571, Jim Radford, + http://use.perl.org/~Alias/journal/33508). + * Mon Aug 13 2007 Ville Skyttä - 20060301-5 - License: GPLv2+