How to solve the error bash = command not found?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
Good evening. Faced with such a problem ))
the line in the script
name ='hello' or so $name = 'hello'

Summary of all one - line 3: =: command not found
I understand that this problem for someone funny, but nowhere to go, nothing is going to do it
by | 11 views

1 Answer

0 like 0 dislike
It is strange that no one answered )
Probably figured out already, but just in case I will answer.
In bash when you use = to assign a value you cannot put spaces, because the space is a parameter separator. Accordingly, so right:
name=hello
And so wrong:
name ='hello'
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked May 22, 2019 by niriter
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,573 users