Variables and Environment Variables In Bash
Most programming languages make heavy use of ordinary variables. They also (generally) support using environment variables. Shells like bash - also heavily used for writing shell scripts - have a slightly different audience in mind than normal programming languages. They make heavy use of environment variables. So much so that it can sometimes become blurry whether something is a normal variable or an environment variable. In this post, I will dig into variables and environment variables in shell, particularly bash, to help you understand how to distinguish the two and when to use them. ...