Suppose in a program a line is there:
what will happen if i write a command:
The issue is that scripts run in a private subshell, and therefore don't affect the shell that called them.
If we pretend that we have a script like this:
# Name: test_script
export OOGA=echo 'ooga'
export BOOGA=echo 'booga'
Then we can add it to the current shell by using the source command:
Thanks to kupendra for this tip on the forum.