▲ | indigodaddy 7 days ago | |||||||
Does it even work with the &&? Iirc, I've never had luck putting env vars before the && and always had to do it the way you describe | ||||||||
▲ | DiabloD3 7 days ago | parent [-] | |||||||
It works because they exported it. VAR=foo bar only sets it for the env passed to that exec or subshell, export VAR=foo && bar adds it to the current env then executes bar. export VAR=foo && bar is dangerous because it stays set. | ||||||||
|