I have two scripts:
#!/bin/bash
./variable2.sh
echo "11111111"
env | grep TEST_ID
and:
#!/bin/bash
export TEST_ID=1234567890
echo "222222222"
env | grep TEST_ID
Result of running it is:
./variable.sh
222222222
TEST_ID=1234567890
11111111
So looks like if script2 sets variables, they are not seen in script which is running it.. Anyone know how to solve this issue ? Thanks