回答:
builtinの同義語ですsource。またはから読み取られるように、現在のシェルのファイルからコマンドを実行します。help sourcehelp .
あなたの場合、ファイル/etc/vz/vz.confが実行されます(おそらく、スクリプトで後で使用される変数の割り当てのみが含まれています)。たとえば、/etc/vz/vz.conf多くの点でファイルを実行するだけとは異なります。最も明白なのは、ファイルが実行可能である必要がないことです。次に、それを実行することを考えますがbash /etc/vz/vz.conf、これは子プロセスでのみ実行され、親スクリプトは子が行う変更(変数の変更など)を表示しません。
例:
$ # Create a file testfile that contains a variable assignment:
$ echo "a=hello" > testfile
$ # Check that the variable expands to nothing:
$ echo "$a"
$ # Good. Now execute the file testfile with bash
$ bash testfile
$ # Check that the variable a still expands to nothing:
$ echo "$a"
$ # Now _source_ the file testfile:
$ . testfile
$ # Now check the value of the variable a:
$ echo "$a"
hello
$
お役に立てれば。
.は普遍的に移植性があり、source広く普及していると言ったほうが良いですが、プレーンでは機能しませんsh。
.ほとんどのシェル(sh、ash、kshなど)で動作しますsourceが、bashに固有です。