From db418ff1643e7003dfa31e4ab2688d8e4ac0188f Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 20 Jan 2015 16:22:17 +0000 Subject: Add a patch to fix tab on an empty line producing: $ bash: words: bad array subscript PR: 196713 Submitted by: gnudalf@yandex.com Obtained from: upstream bug #1289597 --- shells/bash-completion/files/patch-bash__completion | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shells/bash-completion/files/patch-bash__completion (limited to 'shells/bash-completion/files/patch-bash__completion') diff --git a/shells/bash-completion/files/patch-bash__completion b/shells/bash-completion/files/patch-bash__completion new file mode 100644 index 000000000000..6e6d95fa1a68 --- /dev/null +++ b/shells/bash-completion/files/patch-bash__completion @@ -0,0 +1,11 @@ +--- bash_completion.orig 2015-01-20 16:17:24 UTC ++++ bash_completion +@@ -707,7 +707,7 @@ _init_completion() + fi + done + +- [[ $cword -eq 0 ]] && return 1 ++ [[ $cword -le 0 ]] && return 1 + prev=${words[cword-1]} + + [[ ${split-} ]] && _split_longopt && split=true -- cgit v1.2.3