File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ _dpkg()
39
39
local cur prev words cword split
40
40
_init_completion -s || return
41
41
42
- _expand || return
43
-
44
42
local i=$cword
45
43
46
44
# find the last option flag
Original file line number Diff line number Diff line change @@ -21,8 +21,16 @@ sync_after_int
21
21
if {[assert_exec {dpkg --get-selections | command grep \[\[:space:\]\]install$ | cut -f1} packages]} {
22
22
assert_complete $packages "dpkg -L "
23
23
}
24
+ sync_after_int
24
25
25
26
27
+ set test "dpkg -i ~part should complete to ~full/ if home dir exists"
28
+ # https://bugs.debian.org/864691
29
+ # Create list of users, having existing home dir
30
+ assert_bash_exec {for u in $(compgen -u); do \
31
+ eval test -d ~$u && echo $u; unset u; done} {} /@ users
32
+ find_unique_completion_pair $users part full
33
+ assert_complete "~$full/" "dpkg -i ~$part" $test -nospace
26
34
sync_after_int
27
35
28
36
You can’t perform that action at this time.
0 commit comments