經安全檢測,此網站為安全網站,請放心前往原始網址!

shell - Basic bash script variable declaration - command not found - Stack Overflow

This seems like such a simple question I'm embarrassed to ask it: test.sh #!/bin/bash STR = "Hello World" echo $STR when I run sh test.sh I get this: test.sh: line 2: STR: command not found ... ... You cannot have spaces around your '=' sign. When you wri

stackoverflow.com

網址安全性掃描由 google 提供