我将以下几行输入到名为“test.sh”的 shell 脚本中:
#!/bin/bash
echo Hello World
STR=”Hello Again”
echo $STR
Run Code Online (Sandbox Code Playgroud)
在 chmod 到可执行文件之后,我用./test.sh. 但是,我收到消息
./test.sh: line 3 STR: Command not found
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?