Forking
Forking
Posted Oct 6, 2023 11:20 UTC (Fri) by gioele (subscriber, #61675)In reply to: Forking by farnz
Parent article: OpenSSH 9.5 released
You stopped too early. Then the software loads the user-specific config in $HOME (overriding built-in, /usr and /etc configs). And then it loads other settings from ARGV (overriding built-in, /usr, /etc and $HOME configs).
I do not really understand how people that are used to the decades-old mechanism of ARGV overriding $HOME overriding /etc overriding built-in defaults, are now against having just another level of override in /usr (an additional level that brings many practical benefits).
Posted Oct 6, 2023 11:22 UTC (Fri)
by farnz (subscriber, #17727)
[Link] (1 responses)
For the software I'm used to thinking about, there's no user-specific config (it's system-wide software, so doesn't load from $HOME), and you set argv as part of the service manager's configuration, rather than running it by hand.
Posted Oct 6, 2023 12:51 UTC (Fri)
by gioele (subscriber, #61675)
[Link]
I agree, but that does not mean that the software does not already have code in place used to merge ARGV with the built-in config values and those found in /usr.
And even system-wide software sometimes reads from $HOME-like configuration files. For example Apache has directory-specific .htaccess files, cron has user-specific crontabs.
Posted Oct 6, 2023 12:07 UTC (Fri)
by gdiscry (subscriber, #91125)
[Link]
Forking
Forking
And you can also add environment variables between argv and the configuration files.
Forking
