 |
unix - Export a variable to the environment from a bash script without sourcing it - Stack Overflow
In order to export out the VAR variable first the most logical and seems working way is to source the variable:. ./export.bash or source ./export.bash Now when echoing from main shell it works echo $VAR HELLO, VARABLE We will now reset VAR export VAR ...
stackoverflow.com |
 |