3 ms·
Environment variable affect all instances; command-line arguments affect only one program instance. Set your defaults with environment variables (or a config fi
by hk__2 10y ago
Environment variable affect all instances; command-line arguments affect only one program instance. Set your defaults with environment variables (or a config file), then override them as needed with command-line flags.
- icebraining 10y agoNo, you can definitively pass an environment variable to a single instance.
- grymoire1 10y agoYes, that is true but very misleading. If the single instance does not create any new processes, then there is no practical difference. The difference occurs when a process A created process B and process B spawns one or more processes.