> For the complete documentation index, see [llms.txt](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linuxstory.gitbook.io/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/09_another_look_at_variables.md).

# 9. 换个角度看变量

### 本章目录

* [9.1 内部变量](/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/09_another_look_at_variables/09_1_internal_variables.md)
* [9.2 变量类型标注：`declare` 与 `typeset`](/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/09_another_look_at_variables/09_2_typing_variables_declare_or_typeset.md)
  * [9.2.1 `declare` 的另类用法](/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/09_another_look_at_variables/09_2_typing_variables_declare_or_typeset/09_2_1_another_use_for_declare.md)
* [9.3 `$RANDOM`：生成随机数](/advanced-bash-scripting-guide-in-chinese/zheng-wen/part3/09_another_look_at_variables/09_3_random_generate_random_integer.md)

在脚本中恰当的使用变量可以增强脚本并提高适应性。因此就需要了解变量的微妙之处和细微差异。
