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 4ac86e8 commit 1f57833Copy full SHA for 1f57833
bash_completion
@@ -2130,7 +2130,10 @@ _included_ssh_config_files()
2130
local -a include_files
2131
included=("$configfile")
2132
2133
- while ((${#included[@]} > 0 && depth++ < 16)); do
+ # Max recursion depth per openssh's READCONF_MAX_DEPTH:
2134
+ # https://github.com/openssh/openssh-portable/blob/5ec5504f1d328d5bfa64280cd617c3efec4f78f3/readconf.c#L2240
2135
+ local max_depth=16
2136
+ while ((${#included[@]} > 0 && depth++ < max_depth)); do
2137
_comp_split include_files "$(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\(.*\)$/\1/p' "${included[@]}")" || return
2138
included=()
2139
for i in "${include_files[@]}"; do
0 commit comments