簡體   English   中英

`-f` 標志在 shebang 中使用時是什么意思:`#?/bin/bash -f`?

[英]What does `-f` flag mean when used in a shebang: `#!/bin/bash -f`?

shebang -f 標志是什么意思? 具體用於 bash 腳本文件,

#!/bin/bash -f
echo hello
# blabla 

它將-f標志傳遞給運行腳本的bash實例:

$ bash -c "help set"

 -f  Disable file name generation (globbing).

https://tldp.org/LDP/abs/html/options.html

Abbreviation    Name    Effect

-f              noglob  Filename expansion (globbing) disabled

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM