shell--脚本之间传值,模仿jenkins内置变量的功能 # vim father.sh name='zhangsan' # vim child.sh source /mnt/father.sh echo $name # sh child.sh 输出内容: zhangsan