2

请解释这句话的意思

. ./ab_project_setup.ksh $(pwd)
4

2 回答 2

2

添加到Alberto的答案:

这是一个小演示:

$ cat a.sh        # the script a.sh just exports a variable foo
export foo="$1"   # with it's value set to first command line argument.
$ echo $foo       # currently variable foo is not set.

$ . ./a.sh $(pwd) # source the script passing it pwd as argument.
$ echo $foo       # variable foo is now set.
/home/codaddict
$ pwd             # the present working directory.
/home/codaddict
于 2010-11-12T10:02:25.623 回答
1
.

表示来源以下内容

./ab_project_setup.ksh

您正在采购的文件的名称

$(pwd)

展开到当前工作目录并作为参数传递给脚本。

于 2010-11-12T09:49:14.050 回答