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.
cmd
1 parent 61982cb commit 6b75d64Copy full SHA for 6b75d64
bash_completion
@@ -2551,7 +2551,7 @@ __load_completion()
2551
# 3) From bin directories extracted from the specified path to the command,
2552
# the real path to the command, and $PATH
2553
paths=()
2554
- [[ $cmd == */* ]] && paths+=("${cmd%/*}")
+ [[ $cmd == /* ]] && paths+=("${cmd%/*}")
2555
local ret
2556
_comp_realcommand "$cmd" && paths+=("${ret%/*}")
2557
_comp_split -aF : paths "$PATH"
0 commit comments