1
在 「RabbitMQ的-ENV」 相同的RabbitMQ的劇本,存在 「-H」, 「F」,下面幾行:RabbitMQ的bash腳本-f -h意義
while [ -h "$SCRIPT_PATH" ] ; do
[ ! -f ${CONF_ENV_FILE} ] ; then
什麼意思這些符號?
在 「RabbitMQ的-ENV」 相同的RabbitMQ的劇本,存在 「-H」, 「F」,下面幾行:RabbitMQ的bash腳本-f -h意義
while [ -h "$SCRIPT_PATH" ] ; do
[ ! -f ${CONF_ENV_FILE} ] ; then
什麼意思這些符號?
[
是test
。從help test
:
-f FILE True if file exists and is a regular file.
...
-h FILE True if file is a symbolic link.
非常感謝。 –
您可以瞭解更多關於Bash的語法,從[參考手冊](http://tiswww.case.edu/php/chet/bash/bashref.html)或[手冊頁]( http://tiswww.case.edu/php/chet/bash/bash.html)。 –
謝謝您的信息。 –