bash-completion: Update to 0.2.7 (#4153)

* bash-completion: Update to 0.2.7

* news: Update bash completion fix
This commit is contained in:
Daniel Shimon 2021-03-08 17:36:03 +02:00 committed by GitHub
parent c06872080e
commit 165f882f6d
Failed to generate hash of commit
2 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Absolute paths to executables don't break bash completions anymore
**Security:**
* <news item>

View file

@ -15,7 +15,7 @@ import functools
import subprocess
import typing as tp
__version__ = "0.2.6"
__version__ = "0.2.7"
@functools.lru_cache(1)
@ -335,6 +335,7 @@ def bash_completions(
splt = line.split()
cmd = splt[0]
cmd = os.path.basename(cmd)
idx = n = 0
prev = ""
for n, tok in enumerate(splt):