經安全檢測,此網站為安全網站,請放心前往原始網址!

unix - Export a variable to the environment from a bash script without sourcing it - Stack Overflow

In order to export out the VAR variable first the most logical and seems working way is to source the variable:. ./export.bash or source ./export.bash Now when echoing from main shell it works echo $VAR HELLO, VARABLE We will now reset VAR export VAR ...

stackoverflow.com

網址安全性掃描由 google 提供