3 ms·
> Why would anyone want environment variables > when you can have config files You still need a way to tell your program where the config file is. Environmen
by rixed 8y ago
> Why would anyone want environment variables
> when you can have config files
You still need a way to tell your program where the config file is.
Environment variables are just like a configuration file that's automatically opened by the OS when a process start and automatically parsed as a set of named strings by the libc. In the many cases where one does not need more complex data structures than that, then to introduce a config file is just making things harder.
That being said, I wish envvars had namespaces of some sort.