1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-17 17:29:23 -04:00
ports/shells/bash-completion/files/patch-bash__completion
Adam Weinberger db418ff164 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 
2015-01-20 16:22:17 +00:00

11 lines
287 B
Text

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