diff options
author | adamw <adamw@FreeBSD.org> | 2015-01-21 00:22:17 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2015-01-21 00:22:17 +0800 |
commit | 9456526999112852d4ff365b014c1fc32c12ebe3 (patch) | |
tree | a30d4b19671916b6a5ce134a4148a0fd8ed006f0 /shells | |
parent | 83d44dee1d24dae6e2bbc5e04d852e4ff323e557 (diff) | |
download | freebsd-ports-graphics-9456526999112852d4ff365b014c1fc32c12ebe3.tar.gz freebsd-ports-graphics-9456526999112852d4ff365b014c1fc32c12ebe3.tar.zst freebsd-ports-graphics-9456526999112852d4ff365b014c1fc32c12ebe3.zip |
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
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash-completion/Makefile | 2 | ||||
-rw-r--r-- | shells/bash-completion/files/patch-bash__completion | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/shells/bash-completion/Makefile b/shells/bash-completion/Makefile index 8c866c8d7fb..6cca80d7a30 100644 --- a/shells/bash-completion/Makefile +++ b/shells/bash-completion/Makefile @@ -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/ diff --git a/shells/bash-completion/files/patch-bash__completion b/shells/bash-completion/files/patch-bash__completion new file mode 100644 index 00000000000..6e6d95fa1a6 --- /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 |