We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_comp_expand_glob
1 parent b63d25a commit 58d5176Copy full SHA for 58d5176
completions/aspell
@@ -5,8 +5,7 @@ _comp_cmd_aspell__dictionary()
5
local datadir aspell=$1
6
datadir=$("$aspell" config data-dir 2>/dev/null || echo /usr/lib/aspell)
7
# First, get aliases (dicts dump does not list them)
8
- COMPREPLY=($datadir/*.alias)
9
- if ((${#COMPREPLY[@]})); then
+ if _comp_expand_glob COMPREPLY '"$datadir"/*.alias'; then
10
COMPREPLY=("${COMPREPLY[@]%.alias}")
11
COMPREPLY=("${COMPREPLY[@]#$datadir/}")
12
fi
0 commit comments