Код: Выделить всё
~
├── a.py
├── b
└── c.sh
Код: Выделить всё
c.shКод: Выделить всё
#!/bin/sh
rcfile=$(mktemp)
export TEST1='hello'
cat
Подробнее здесь: [url]https://stackoverflow.com/questions/78723313/variables-set-inside-the-rcfile-are-not-accessible-through-python[/url]