# vim father.sh
name='zhangsan'
# vim child.sh

source /mnt/father.sh

echo $name
# sh child.sh 

输出内容:

zhangsan

相关文章:

  • 2021-09-07
  • 2021-12-18
  • 2021-12-18
  • 2022-12-23
  • 2021-12-18
  • 2021-05-25
猜你喜欢
  • 2021-05-19
  • 2021-12-18
  • 2021-12-18
  • 2022-12-23
  • 2021-12-18
  • 2022-01-22
相关资源
相似解决方案