harttle.github.io
harttle.github.io copied to clipboard
2017/04/03/shell-variable-scope
Shell 中的变量作用域 | Harttle Land
TL;DR Shell 中的变量只作用于当前进程。如需在子进程中创建副本可使用 export 内建命令。 有时使用临时变量语法可以非常方便。
mark下,表示我看过了(会不会吵到...)