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 ffc2178 commit 9d57f05Copy full SHA for 9d57f05
bash_completion
@@ -2447,7 +2447,7 @@ _comp__included_ssh_config_files()
2447
# https://github.com/openssh/openssh-portable/blob/5ec5504f1d328d5bfa64280cd617c3efec4f78f3/readconf.c#L2240
2448
local max_depth=16
2449
while ((${#included[@]} > 0 && depth++ < max_depth)); do
2450
- _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
2451
2452
included=()
2453
for i in "${include_files[@]}"; do
0 commit comments