There are many situations where we need to create new variable in parent process and that should be available in child process. In that case, if we dont use export then those variables wont be available in child process
Description: Line-1, new variable MY_HOME is created.
Line-2, printed new variable on terminal.
Line-3, created child process using 'bash' command.
Line-4, Again printed defined variable on terminal. As its expected, child process doesnt have the new defined variable.
Line-5, exit from the child process.
Line-6, print the new variable again in parent process.
As observed again, by default child process does not inherit parent's variables. It only inherits parent's exported variables. This is where export command is useful.