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
This commit is contained in:
Adam Weinberger 2015-01-20 16:22:17 +00:00
parent 7efc3b05a5
commit db418ff164
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377528
2 changed files with 12 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= bash-completion
PORTVERSION= 2.1
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= shells
MASTER_SITES= http://bash-completion.alioth.debian.org/files/

View file

@ -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