首页 > 系统服务 > 详细

LINUX_source

时间:2015-11-01 19:25:05      阅读:389      评论: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 shellenvironment

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

http://askubuntu.com/questions/182012/is-there-a-difference-between-and-source-in-bash-after-all?lq=1

help doesn‘t work everywhere (atleast in zsh). type does

help {builtin-name}

LINUX_source

原文:http://www.cnblogs.com/guxuanqing/p/4928411.html

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