[Bug 3143] Add the ability to capture wildcard portion of Host keyword in ssh_config

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Mar 31 12:18:37 AEDT 2020


https://bugzilla.mindrot.org/show_bug.cgi?id=3143

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at dtucker.net

--- Comment #1 from Darren Tucker <dtucker at dtucker.net> ---
There's a couple of problems with this:
 - the current matching code doesn't lend itself to supporting this
kind of backreference
 - it does however currently support multiple wildcards (eg
"*-*-?.domain.*") which don't map well onto the token you suggested. 
It'd probably need to be regex-style digits %1 - %9.
 - "Host" specifically supports multiple matches.  You could have, eg,
"Host pc-? *-* *.*.*", at which point you could have 1, 2 or 3
backrefs.  In that case, what does "%3" evaluate to and when?

I'm not sure it's useful enough to be worth the extra complexity in the
parser, which is already pretty complex.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list