export 前缀


¥export prefixes

变量声明前可以选择添加 export 关键字,该文件上执行的所有处理都将完全忽略该关键字。

¥The export keyword can optionally be added in front of variable declarations, such keyword will be completely ignored by all processing done on the file.

这很有用,因为可以在 shell 终端中获取文件而无需修改。

¥This is useful so that the file can be sourced, without modifications, in shell terminals.

示例:

¥Example:

export MY_VAR = my variable