-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2285
Joachim Ansorg edited this page Nov 12, 2021
·
2 revisions
var += "my text"var+="my text"ShellCheck found an unquoted += after a word. To append text to a variable, remove spaces around += as in the example.
If the += was supposed to be literal, you can quote it to make ShellCheck ignore it:
grep '+=' files..
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!