2Another type of variable, shell variables, are local to the current shell. Whereas environment variables are inherited by subshells, shell variables are not; this is the only difference between them. By convention, shell variables are written in lower or mixed case. These conventions provide a clue to the programmer as to whether changing a variable’s value might have consequences outside the current shell.