From 4300bac604fd6a5b918f102bf3de7406e92881ce Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 19 Jan 2016 05:01:12 +0100 Subject: [PATCH] bash-completion: fix #1558 --- .../patches/words_bad_array_subscript.patch | 11 +++++++++++ srcpkgs/bash-completion/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/bash-completion/patches/words_bad_array_subscript.patch diff --git a/srcpkgs/bash-completion/patches/words_bad_array_subscript.patch b/srcpkgs/bash-completion/patches/words_bad_array_subscript.patch new file mode 100644 index 0000000000..25d6f74313 --- /dev/null +++ b/srcpkgs/bash-completion/patches/words_bad_array_subscript.patch @@ -0,0 +1,11 @@ +--- bash_completion.orig ++++ bash_completion +@@ -718,7 +718,7 @@ _init_completion() + fi + done + +- [[ $cword -eq 0 ]] && return 1 ++ [[ $cword -le 0 ]] && return 1 + prev=${words[cword-1]} + + [[ ${split-} ]] && _split_longopt && split=true diff --git a/srcpkgs/bash-completion/template b/srcpkgs/bash-completion/template index 66992230ab..0be9a15e71 100644 --- a/srcpkgs/bash-completion/template +++ b/srcpkgs/bash-completion/template @@ -1,7 +1,7 @@ # Template file for 'bash-completion' pkgname=bash-completion version=2.1 -revision=6 +revision=7 noarch="yes" build_style=gnu-configure makedepends="bash"