How do I export a variable in shell script?

How do I export a variable in shell script?
Answer
Exporting shell variables (export shell command)
You can use the
export command to make local variables global. To make your local shell variables global automatically, export them in your . profile file. Note: Variables can be exported down to child shells but not exported up to parent shells.
 

Tìm kiếm

Back
Top