[英]How does the @ work in Bash?
When I open BashBurn source I se: 当我打开BashBurn源代码时,我会发现:
mainmenu[7]="$bb_menu_8@check_path"
I don't know what does @check_path
mean? 我不知道@check_path
是什么意思? And how does it work? 以及它如何运作?
It doesn't mean any special in Bash alone: @
is just a part of a string here. 这并不意味着Bash会有任何特殊之处: @
只是这里字符串的一部分。 It could have a special meaning inside the BashBurn implementation, however. 但是,它在BashBurn实现内部可能具有特殊含义。
It looks like it is a part of the translation framework used inside BashBurn. 看起来它是BashBurn内部使用的翻译框架的一部分。 You can search it on your own on GitHub for example . 例如,您可以自己在GitHub上搜索它。
mainmenu
is set in BashBurn.sh
, which is then passed as the second argument to the bbmenu
function. mainmenu
在BashBurn.sh
中设置,然后作为第二个参数传递给bbmenu
函数。 The function is defined in bbmenu.sh
. 该函数在bbmenu.sh
定义。 There is a description of the syntax, including this information: 语法说明,包括以下信息:
ALL ITEMS ARE SEPERATED BY AMPERSAND. 所有项目均由AMPERSAND分隔。
All you need to do now is to read the rest of the documentation in the bbmenu.sh
file. 您现在要做的就是阅读bbmenu.sh
文件中的其余文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.