3 ms·
> Environment variables are scoped to the current process. Obviously this is true in a sense. But for practical purposes, it depends on how the environment var
by michaelmior 6y ago
> Environment variables are scoped to the current process.
Obviously this is true in a sense. But for practical purposes, it depends on how the environment variables are set. For example, if I set them in my ~/.bash_profile, they're scoped to all bash processes that my current user runs. If I put them in /etc/profile, they're effectively global.
- kodah 6y agoDepending on the variable, sure, but that's a wide latitude in the interpretation of "global". They're not linked or the same memory in any form or fashion. They're merely identical in value.
- michaelmior 6y agoTrue. I was thinking in the context of software deployments where environment variables are commonly used as read-only configuration values once the deployment is made.