📜  找不到 bash 变量命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:18.486000             🧑  作者: Mango

代码示例1
You can not have spaces around the '=' when assigning a variable
Bash will interpret it as a command with '=' and something else as
arguments for that command.

Example:
STR = 'foo' will not work
STR='foo' will work