古越剑箫

学习是一种习惯

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

 

 

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

person="中国上海";

# echo $person;

 

 

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

# source ./include1.sh

. ./include1.sh

name="张三";

echo "${name}住在${person}";

 

 

 

$ ./include2.sh
张三住在中国上海
posted on 2020-08-26 15:52  古越剑箫  阅读(219)  评论(0编辑  收藏  举报