-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1133
Vidar Holen edited this page Oct 22, 2018
·
3 revisions
dmesg
| grep "error"
dmesg |
grep "error"
ShellCheck has found a line that unexpectedly started with |
, ||
or &&
. This usually happens when a line is broken incorrectly.
When breaking around a |
, ||
or &&
, there are two options:
- Break the line after this token.
dmesg
is a complete command by itself, butdmesg |
is not so the shell knows to continue on the next line. - Use a
\
at the end of the previous line to explicitly tell the shell to continue on the next.
None. This is a syntax error.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!