Command not found error in Bash variable assignment
You cannot have spaces around the = sign. When you write: STR = “foo” bash tries to run a command named STR with 2 arguments (the strings = and foo) When you write: STR =foo bash tries to run a command named STR with 1 argument (the string =foo) When you write: STR= foo bash … Read more