- Patch to improve perl completion (#299571, Jim Radford,

http://use.perl.org/~Alias/journal/33508).
This commit is contained in:
Ville Skyttä 2007-09-22 07:43:01 +00:00
parent 77b5bf2915
commit e985062a5f
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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ä <ville.skytta at iki.fi> - 20060301-6
- Patch to improve perl completion (#299571, Jim Radford,
http://use.perl.org/~Alias/journal/33508).
* Mon Aug 13 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060301-5
- License: GPLv2+