We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b51a027 commit 097fbe5Copy full SHA for 097fbe5
bash_completion
@@ -3338,7 +3338,7 @@ _comp_load()
3338
eval "$compspec \"\$rawcmd\""
3339
# If invoked without path, that one should be set, too
3340
# ...but let's not overwrite an existing one, if any
3341
- [[ $origcmd != */* ]] &&
+ [[ $origcmd != "$cmd" && $origcmd != "$rawcmd" ]] &&
3342
! complete -p -- "$origcmd" &>/dev/null &&
3343
eval "$compspec \"\$origcmd\""
3344
return 0
0 commit comments