# vim father.sh name=‘zhangsan‘
# vim child.sh source /mnt/father.sh echo $name
# sh child.sh
输出内容:
zhangsan
shell--脚本之间传值,模仿jenkins内置变量的功能
原文:https://www.cnblogs.com/lutt/p/12723341.html