请解释这句话的意思
. ./ab_project_setup.ksh $(pwd)
添加到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
.
表示来源以下内容
./ab_project_setup.ksh
您正在采购的文件的名称
$(pwd)
展开到当前工作目录并作为参数传递给脚本。