3 ms·
Explicit options require the cooperation of every intermediate program. If program D is called by C, which is called by B, which is called by A, and D gets a ne
by kazinator 8y ago
Explicit options require the cooperation of every intermediate program. If program D is called by C, which is called by B, which is called by A, and D gets a new option that we need to use, we have to modify C to pass it to D, then B to pass it to C, and A to pass it to B. Or we could just set an environment variable.
Configuration files don't let us override individual variables easily, in different invocations of the program. We have to generate a custom version of the configuration file for that job and pass that file's name to it.
Environment variables are only visible to children, so they are inherently secure; we don't worry whether permissions are too loose on an environment variable so that another user could see it or modify it. There is no such thing.
- tlb 8y agoEnvironment variables are visible with 'ps -E', to anyone with the same UID or root. In Linux, they're visible in /proc/<pid>/environ, which is permission 400 and owned by the effective user of the process.