What is the export command supposed to do in Linux?
|
feedback
|
|
Here is an example to demonstrate the behavior.
You will notice that without the export the new bash process you created was not able to see testvar. When testvar was exported, the new process was able to test var. | ||||
|
feedback
|
|
Export a shell variable as environment variable. | |||||||||
feedback
|
|
Please see this Bash by example tutorial from IBM. It even includes an example of using | |||
|
feedback
|