mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
`Match` is dropped along with everything under it, and nothing in the code said whether that was a decision or an oversight. It is a decision -- `docs/remote/ssh.mdx` lists "No `Match` or `canonicalize*` directives" under what is not supported -- and it took a run of `ssh -G` against a config to establish that, which is a reason for the next reader not to have to. The comment also says why reading them is more than parsing them: `Match host` tests the *resolved* hostname, so it needs the pass it sits in; `Match exec` runs a command, which importing a config file should not do; `Match canonical` wants canonicalisation, which is on the same unsupported list. The test holds the documented shape: `ssh -G` answers `user alice` and `port 2222` for that config, tty7 answers the defaults, and the profile is still imported from its `Host` block. It is a limitation rather than a behaviour, so it is worth a test only because failing it means the page has to change in the same commit.