You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vidar Holen edited this page Jun 6, 2021
·
1 revision
This is interpreted as a command name containing a linefeed. Double check syntax.
(or tab)
Problematic code:
'''This script greets the planet'''echo"Hello World"
Correct code:
# This script greets the planetecho"Hello World"
Rationale:
ShellCheck found a command name containing an especially unusual character like a tab or linefeed. This is most likely due to a syntax issue.
In the example, this was due to a Python style documentation string, which a shell will merely interpreted as a multi-line command name sandwiched between two empty strings.
Exceptions:
If you have a command name that does contain a tab or linefeed you can ignore this message, but... wow.
Related resources:
Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!