Skip to content

Commit 5618654

Browse files
scopakinomyoga
andcommitted
feat(__load_completion): pass backslashless command to fallback loads
So that things work also for commands preceded by a backslash. Co-authored-by: Koichi Murase <[email protected]>
1 parent 7cd9cb9 commit 5618654

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
@@ -2567,7 +2567,7 @@ __load_completion()
25672567
# Do not warn with . or .. (especially the former is common)
25682568
[[ $compfile == */.?(.) ]] ||
25692569
echo "bash_completion: $compfile: is a directory" >&2
2570-
elif [[ -e $compfile ]] && . "$compfile"; then
2570+
elif [[ -e $compfile ]] && . "$compfile" "$cmd"; then
25712571
[[ $backslash ]] && $(complete -p "$cmd") "\\$cmd"
25722572
return 0
25732573
fi

0 commit comments

Comments
 (0)