Displaying 1 result from an estimated 1 matches for "example_vari".
Did you mean:
example_var
2025 Jan 20
0
Match/Include by environment variable unexpected behavior
...n when the variable is undefined. However, it seems like when ssh client parses the config, it tries to evaluate the variable despite Match failure.
I can give a minimal example. Let's use two ssh config files in the present working directory:
```
$ cat testing.sshconfig
Match exec '[[ -v EXAMPLE_VARIABLE ]]'
Include ${PWD}/${EXAMPLE_VARIABLE}.sshconfig
$ cat example.sshconfig
Host foo.example.com
ProxyJump bar.example.com
```
(In case you don't have the `-v` test in your shell, I also checked with `[[ -n "$EXAMPLE_VARIABLE" ]]`.)
When the environment variable is set, it...