Skip to content

Commit 6b75d64

Browse files
committed
fix(__load_completion): check if cmd is absolute for bin dir
1 parent 61982cb commit 6b75d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2551,7 +2551,7 @@ __load_completion()
25512551
# 3) From bin directories extracted from the specified path to the command,
25522552
# the real path to the command, and $PATH
25532553
paths=()
2554-
[[ $cmd == */* ]] && paths+=("${cmd%/*}")
2554+
[[ $cmd == /* ]] && paths+=("${cmd%/*}")
25552555
local ret
25562556
_comp_realcommand "$cmd" && paths+=("${ret%/*}")
25572557
_comp_split -aF : paths "$PATH"

0 commit comments

Comments
 (0)