#!/bin/bash #shell 引用另一个shell person="中国上海"; # echo $person;
#!/bin/bash #shell 引用另一个shell # source ./include1.sh . ./include1.sh name="张三"; echo "${name}住在${person}";
$ ./include2.sh 张三住在中国上海
#!/bin/bash #shell 引用另一个shell person="中国上海"; # echo $person;
#!/bin/bash #shell 引用另一个shell # source ./include1.sh . ./include1.sh name="张三"; echo "${name}住在${person}";
$ ./include2.sh 张三住在中国上海