case 1:
a=10
echo $a ;// yield to 10
bash // create one child shell
echo $a; // yield to nothing
case 2:
export a=10
echo $a // yield to 10
bash // create one child shell
echo $a // yield to 10
case 1:
a=10
echo $a ;// yield to 10
bash // create one child shell
echo $a; // yield to nothing
case 2:
export a=10
echo $a // yield to 10
bash // create one child shell
echo $a // yield to 10