shell--脚本之间传值,模仿jenkins内置变量的功能
# vim father.sh name='zhangsan'
# vim child.sh source /mnt/father.sh echo $name
# sh child.sh
输出内容:
zhangsan
python 中文名:蟒蛇,设计者:Guido van Rossum
python 中文名:蟒蛇,设计者:Guido van Rossum
# vim father.sh name='zhangsan'
# vim child.sh source /mnt/father.sh echo $name
# sh child.sh
输出内容:
zhangsan