1
export FOO1=bar1
python -c "import os; os.environ['FOO2'] = 'bar2'" 
echo $FOO1 $FOO2 # prints "bar1"

How do I make the environment variable FOO2='bar2' accessible to the calling bash script?

Daniel Walker
  • 6,380
  • 5
  • 22
  • 45
Toldry
  • 485
  • 1
  • 4
  • 13

0 Answers0