How to Import a Variable from a Script?
چهارشنبه, ۲۳ تیر ۱۳۹۵، ۰۱:۲۷ ب.ظ
# a.sh
num=42
# b.sh
. ./a.sh
echo $num
The variables in "a" do not need to be exported.
# a.sh
num=42
# b.sh
. ./a.sh
echo $num
The variables in "a" do not need to be exported.