説明してください 。 ./ab_project_setup.ksh $(pwd)ステートメント
質問
この声明の意味を説明してください
. ./ab_project_setup.ksh $(pwd)
解決
追加 アルベルト答え:
これが小さなデモです:
$ 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)
現在の作業ディレクトリに拡張され、スクリプトへの引数として渡されます。
所属していません StackOverflow