I'm looking for a way to manipulate some env var, which will be available for processes spawned by bash.
Something like the below (of course, the syntax is not correct)
and then later command being run from bash script can do
if [ "$ENV_VAR_X" = 2 ] ..
Notice that I'm invoking bash from a windows Console2/Msys setup, so doing
VAR_X=2 bash is not an option.
Does anyone know how it can be done?