[Bash-completion-commits] [debian] 02/19: words_bad_array_subscript.patch, thanks to Barry Warsaw

David Paleino dapal at debian.org
Wed Mar 19 10:51:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

dapal pushed a commit to branch master
in repository debian.

commit e2c07a7d51afce113a87e49305c3ccda7f391528
Author: David Paleino <dapal at debian.org>
Date:   Wed Mar 19 10:25:31 2014 +0100

    words_bad_array_subscript.patch, thanks to Barry Warsaw
---
 debian/changelog                                  |  3 ++-
 debian/patches/01-words_bad_array_subscript.patch | 22 ++++++++++++++++++++++
 debian/patches/series                             |  1 +
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f6e2b89..d3e3322 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,9 @@ bash-completion (1:2.1-3) UNRELEASED; urgency=medium
         dirs (LP: #1288031)
       + replace double escaping to single (eg for completing file/paths
         with spaces)
+    - words_bad_array_subscript.patch, thanks to Barry Warsaw
 
- -- David Paleino <dapal at debian.org>  Wed, 19 Mar 2014 10:14:24 +0100
+ -- David Paleino <dapal at debian.org>  Wed, 19 Mar 2014 10:25:06 +0100
 
 bash-completion (1:2.1-2) unstable; urgency=low
 
diff --git a/debian/patches/01-words_bad_array_subscript.patch b/debian/patches/01-words_bad_array_subscript.patch
new file mode 100644
index 0000000..797fe62
--- /dev/null
+++ b/debian/patches/01-words_bad_array_subscript.patch
@@ -0,0 +1,22 @@
+From: Barry Warsaw <barry at python.org>
+Subject: Fix bash: words: bad array subscript
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479
+Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597
+Forwarded: yes, <20140312212729.17788.38099.reportbug at samba4.Chuck.local>
+
+---
+ bash_completion |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- bash-completion.orig/bash_completion
++++ bash-completion/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/debian/patches/series b/debian/patches/series
index 38efe9d..5d03d58 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-fix_quote_readline_by_ref.patch
+01-words_bad_array_subscript.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/debian.git



More information about the Bash-completion-commits mailing list