summaryrefslogtreecommitdiff
path: root/debian/changelog
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-11-10 17:17:36 -0200
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-11-10 17:40:43 -0200
commitbab51728186237e4204f30860387c2f7511f291c (patch)
tree685c6397dc35a69a31a146f141590b4274020ec3 /debian/changelog
parentf933650579234d1329f3b10de232ce802bbb772b (diff)
downloadbash-completion-bab51728186237e4204f30860387c2f7511f291c.tar.gz
Backport upstream patch that fixes wildcard completion
Upstream commit: commit 6ffde95c7ea257ff60cb51a263a8d33f4bb0898b Author: dmerge <25472575+dmerge@users.noreply.github.com> Date: Fri Apr 20 22:14:08 2018 -0700 _filedir: Refactor to remove heredoc-dependent loop refactors the function _filedir, and, perhaps accidentally, fixes completion when wildcards are used. The backport doesn't completely solve the problem of wildcard (`*') completion, because wildcards never get expanded, even when a single match is available, nor do options get listed when TAB is pressed twice. To get that behaviour, the following patch would be needed: $ diff -U4 /usr/share/bash-completion/bash_completion.BACKUP /usr/share/bash-completion/bash_completion --- /usr/share/bash-completion/bash_completion.BACKUP 2018-11-10 17:34:08.432870898 -0200 +++ /usr/share/bash-completion/bash_completion 2018-11-10 17:34:12.304421632 -0200 @@ -587,8 +587,10 @@ if [[ ${#toks[@]} -ne 0 ]]; then # 2>/dev/null for direct invocation, e.g. in the _filedir unit test compopt -o filenames 2>/dev/null COMPREPLY+=( "${toks[@]}" ) + else + compopt -o bashdefault 2>/dev/null fi } # _filedir() Since this extra fix could cause unpredicted, undesired side-effects, further discussion is required.
Diffstat (limited to 'debian/changelog')
-rw-r--r--debian/changelog1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f7de9575..ec6438bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ bash-completion (1:2.8-3) UNRELEASED; urgency=medium
[Gabriel F. T. Gomes <gabriel@inconstante.eti.br>]
* Revert `Extra fix for man completion' (from version 1:2.8-2).
+ * Fix wildcard completion. (Closes: #891667).
-- Gabriel F. T. Gomes <gabriel@inconstante.eti.br> Sun, 04 Nov 2018 18:48:03 -0200