码迷,mamicode.com
首页 > 系统相关 > 详细

LINUX_source

时间:2015-11-01 19:25:19      阅读:190      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!