This is due to the implementation of shell interpreter. Each paragraph will launch a shell process, which means each paragraph are in separated shell sessions.
From: Mohit Jaggi <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, September 23, 2017 at 2:54 AM
To: "[hidden email]" <[hidden email]>
Subject: shell interpreter variables
I am using the shell interpreter and noticed that although I can see the scope is global and shared in the configuration, any shell variable set in one para is not visible in another.
export x=1 #also tried x =1, without export
echo $x #prints 1
echo $x #prints nothing
What am I doing wrong?