Commit | Line | Data |
---|---|---|
f18a9f60 FF |
1 | From: Barry Warsaw <barry@python.org> |
2 | Subject: Fix bash: words: bad array subscript | |
3 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 | |
4 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479 | |
5 | Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 | |
6 | Forwarded: yes, <20140312212729.17788.38099.reportbug@samba4.Chuck.local> | |
7 | ||
8 | --- | |
9 | bash_completion | 2 +- | |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
11 | ||
12 | --- bash-completion.orig/bash_completion | |
13 | +++ bash-completion/bash_completion | |
14 | @@ -718,7 +718,7 @@ _init_completion() | |
15 | fi | |
16 | done | |
17 | ||
18 | - [[ $cword -eq 0 ]] && return 1 | |
19 | + [[ $cword -le 0 ]] && return 1 | |
20 | prev=${words[cword-1]} | |
21 | ||
22 | [[ ${split-} ]] && _split_longopt && split=true | |
23 |