28 reputation
3
bio website
location
age
visits member for 1 year, 11 months
seen Nov 14 at 10:10

Dec
11
awarded  Supporter
Dec
11
comment Difference between environment variable and shell variable
@Gilles Thank you for making it clear what's going on and why. As someone said, every Unix developer should also be a historian.
Dec
10
awarded  Scholar
Dec
10
accepted Difference between environment variable and shell variable
Dec
10
comment Difference between environment variable and shell variable
Thank you for your clear answer.
Dec
10
comment Difference between environment variable and shell variable
Hi Mat, thank you for your answer. So my understanding (there are two variables named TEST, one for environment variable and one for shell variable, shell var TEST shadows env var TEST.) is incorrect, there is only one variable in Bash, it is always a shell variable and can be set to be exported and acts as an environment variable. Is this specific to Bash and implementation-dependent, or it is universal in all shells. Thank you.
Dec
10
awarded  Student
Dec
10
asked Difference between environment variable and shell variable