a question about sourcing a script

sh/bash/dash/ksh/zsh等Shell脚本
回复
塔尖的蜗牛
帖子: 2
注册时间: 2012-08-02 20:24

a question about sourcing a script

#1

帖子 塔尖的蜗牛 » 2012-11-27 16:32

Hi,all,
anyone konw the difference between source script.sh and ./script.sh?
thx very much!
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: a question about sourcing a script

#2

帖子 枫叶饭团 » 2012-11-27 17:25

一个是用子shell运行,一个是当前shell运行。
塔尖的蜗牛
帖子: 2
注册时间: 2012-08-02 20:24

Re: a question about sourcing a script

#3

帖子 塔尖的蜗牛 » 2012-11-28 11:22

枫叶饭团 写了:一个是用子shell运行,一个是当前shell运行。
大概明白了,谢谢!
回复