Open remil1000 opened 4 months ago
So for example code
_comp_split hosts "$(command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]=]\{1,\}\(.*\)$/\1/p' "${config[@]}")"; then
in block https://github.com/scop/bash-completion/blob/main/bash_completion#L2646-L2652 may need changes also to handle those inline comments
I agree. We want to apply the changes consistently for similar cases.
When parsing Include directive in _sshconfig files, comments on the same line as the directive are considered as files to be recursively processed. Best case the recursive
max_depth=16
terminates this early, but on old versions it may lead to random reads or an infinite recursion, hanging the shell processExample before/after:
A minimal ssh client config file
The current sed expression
Proposed change to sed expression (ignore anything coming after a
#
)