首页 > 其他 > 详细

source ./ 和 . 的区别

时间:2018-06-26 15:36:45      阅读:218      评论:0      收藏:0      [点我收藏+]

Be careful! ./ and source are not quite the same.

  • ./script runs the script as an executable file, launching a new shell to run it
  • source script reads and executes commands from filename in the current shell environment

Note: ./script is not . script, but . script == source script

source ./ 和 . 的区别

原文:https://www.cnblogs.com/relax1949/p/9229248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!