Bug 3246

Summary: Include directive doesn't support variable expansion
Product: Portable OpenSSH Reporter: Guilhem <guilhem>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement CC: guilhem
Priority: P5    
Version: 8.4p1   
Hardware: amd64   
OS: Linux   

Description Guilhem 2021-01-03 00:36:17 AEDT
Please consider expanding environment variables (feature request from bug 3140) in the Include directive as well.  This would allow one to use:

    Include ${XDG_CONFIG_HOME}/ssh/*.conf

(As of 8.4p1 the glob resolves — as documented — to ~/.ssh/${XDG_CONFIG_HOME}/ssh/*.conf.)