lol

Merge pull request #6319 from sorokin/master

bash-completion: fix bad array subscript error. Closes #6117

+24
+22
pkgs/shells/bash-completion/bash-4.3.patch
··· 1 + commit a9c556ccad819869a6a5d932aac0a75a99372f08 2 + Author: Barry Warsaw <barry@python.org> 3 + Date: Wed Sep 17 19:32:43 2014 +0300 4 + 5 + _init_completion: Handle cword < 0 (LP: #1289597) 6 + 7 + Previously only bash 4.3 seemed to provoke this, but now with the 8 + empty command consistency tweak it occurs with earlier as well. 9 + 10 + diff --git a/bash_completion b/bash_completion 11 + index 7e01ae4..3bb4bc2 100644 12 + --- a/bash_completion 13 + +++ b/bash_completion 14 + @@ -727,7 +727,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
+2
pkgs/shells/bash-completion/default.nix
··· 8 8 sha256 = "0kxf8s5bw7y50x0ksb77d3kv0dwadixhybl818w27y6mlw26hq1b"; 9 9 }; 10 10 11 + patches = [ ./bash-4.3.patch ]; 12 + 11 13 doCheck = true; 12 14 13 15 meta = {