【发布时间】:2015-11-15 15:04:08
【问题描述】:
在 shell 脚本中,即使我使用 Java 或 Python 样式命名约定,我仍然不清楚如何命名常量。
许多约定建议我使用“大写字母”和“下划线”来命名常量,例如MY_CONSTANT,PI。但在Bash 中,这可能与environment variables 冲突。
那么,Bash 常量的正确命名约定是什么?
【问题讨论】:
标签: bash shell constants naming-conventions