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