I have a script in which I'm invoking another script which runs in a subshell.
after the script is executed I want to return to the parent shell as some variables are set. However i'm unable to return to my original shell as the script which i'm calling inside is invoked in subshell and as a reason I'm running it in background.
The subshell executes itself in its own environment inherited from the parent process.
The creations or modifications of variables in the subshell are lost when returning back to the parent.