Skip to content

Commit 097fbe5

Browse files
committed
fix(_comp_cmd): properly register quoted relative-path command
1 parent b51a027 commit 097fbe5

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
@@ -3338,7 +3338,7 @@ _comp_load()
33383338
eval "$compspec \"\$rawcmd\""
33393339
# If invoked without path, that one should be set, too
33403340
# ...but let's not overwrite an existing one, if any
3341-
[[ $origcmd != */* ]] &&
3341+
[[ $origcmd != "$cmd" && $origcmd != "$rawcmd" ]] &&
33423342
! complete -p -- "$origcmd" &>/dev/null &&
33433343
eval "$compspec \"\$origcmd\""
33443344
return 0

0 commit comments

Comments
 (0)