# 9. 换个角度看变量

## 本章目录

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.clay-wangzhi.com/shell/part3/09_another_look_at_variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
