【shell】相互引用

#!/bin/bash
#shell 引用另一个shell

person="中国上海";

# echo $person;
#!/bin/bash
#shell 引用另一个shell

# source ./include1.sh

. ./include1.sh

name="张三";

echo "${name}住在${person}";
$ ./include2.sh
张三住在中国上海
原文地址:https://www.cnblogs.com/gyjx2016/p/13565659.html