Bug 3246 - Include directive doesn't support variable expansion
Summary: Include directive doesn't support variable expansion
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.4p1
Hardware: amd64 Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-03 00:36 AEDT by Guilhem
Modified: 2021-01-03 01:36 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.)