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.
1 parent 930fe3f commit 8c4445cCopy full SHA for 8c4445c
bash_completion
@@ -2542,7 +2542,7 @@ _comp__included_ssh_config_files()
2542
# https://github.com/openssh/openssh-portable/blob/5ec5504f1d328d5bfa64280cd617c3efec4f78f3/readconf.c#L2240
2543
local max_depth=16
2544
while ((${#included[@]} > 0 && depth++ < max_depth)); do
2545
- _comp_split include_files "$(command sed -n -e 's/[[:blank:]]*#.*//' -e 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]*\(..*\)/\1/p' "${included[@]}")" || return
+ _comp_split include_files "$(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]*\([^#]*\).*$/\1/p' "${included[@]}")" || return
2546
2547
included=()
2548
for i in "${include_files[@]}"; do
0 commit comments