Marco Poletti 2011-09-04 07:26:18 +00:00 committed by Git OBS Bridge
parent 62b095c694
commit e27217b9d9
2 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Summary: Programmable Completion for Bash
Url: http://bash-completion.alioth.debian.org/
Group: System/Shells
Source0: http://bash-completion.alioth.debian.org/files/%{name}-%{version}.tar.bz2
Source1: fix_sh_completion.patch
Requires: bash
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -35,6 +36,7 @@ of the programmable completion feature of Bash 2.04 and later.
%prep
%setup -q
%patch -p 1
%build
%configure

11
fix_sh_completion.patch Normal file
View File

@ -0,0 +1,11 @@
diff -Naur a/bash_completion b/bash_completion
--- a/bash_completion 2011-02-06 20:16:00.000000000 +0100
+++ b/bash_completion 2011-09-04 09:24:24.192387001 +0200
@@ -124,6 +124,7 @@
complete -f -X '!*.lyx' lyx
complete -f -X '!@(*.@(ks|jks|jceks|p12|pfx|bks|ubr|gkr|cer|crt|cert|p7b|pkipath|pem|p10|csr|crl)|cacerts)' portecle
complete -f -X '!*.@(mp[234c]|og[ag]|@(fl|a)ac|m4[abp]|spx|tta|w?(a)v|wma|aif?(f)|asf|ape)' kid3 kid3-qt
+complete -f -X '!*' sh
# FINISH exclude -- do not remove this line
# start of section containing compspecs that can be handled within bash