-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1078
Vidar Holen edited this page Jan 21, 2015
·
7 revisions
greeting="hello
target="world"
greeting="hello"
target="world"
The first line is missing a quote.
ShellCheck warns when it detects multi-line double quoted, single quoted or backticked strings when the character that follows it looks out of place.
If you do want a multiline variable, just make sure the character after it is a quote, space or line feed.
var='multiline
'value
can be rewritten for readability and to remove the warning:
var='multiline
value'
As always `..`
should be rewritten to $(..)
.