1001
This \\N will be a regular 'N' in this context.
Bash, zsh, ksh: regardless what Shell you use, Codiga got you covered. With hundreds of rules, the Codiga Static Engine checks for any issue in your shell script and surfaces issues in your Shell codebase.
This \\N will be a regular 'N' in this context.
Want to escape a single quote? echo 'This is how it'\\''s done'.
This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
The mentioned syntax error was in this elif clause.
This is actually an end quote
Not following: /etc/os-release was not specified as input (see shellcheck -x).
Consider using pgrep instead of grepping ps output.
This will expand once before find runs
Note that A && B || C is not if-then-else. C may run when A is true.
Increase precision by replacing a/b*c with a*c/b.
Use '[:lower:]' to support accents and foreign alphabets.
Use '[:upper:]' to support accents and foreign alphabets.
tr replaces sets of chars
Don't use [] around classes in tr
Note that unlike globs
The shell may override 'time' as seen in man time(1). Use 'command time ..' for that one.
This word is outside of quotes. Did you intend to 'nest ''single quotes'"' instead'? "
echo won't expand escape sequences. Consider printf.
Expansion on the client side
Modification of RSYSLOG\_VERSION is local (to subshell caused by pipeline).
RSYSLOG\_VERSION was modified in a subshell. That change might be lost.
Use own script or sh -c '..' to run this from sudo.
Ranges can only match single chars (mentioned due to duplicates).
Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
fgrep is non-standard and deprecated. Use grep -F instead.
Quote expansions in case patterns to match literally rather than as a glob
Unexpected start of line. If breaking lines, |/||/&& should be at the end of the previous one.
This is a unicode quote. Delete and retype it (or ignore/doublequote for literal).
This function is only defined later. Move the definition up.
Redirecting to/from command name instead of file. Did you want pipes/xargs (or quote to ignore)?
This does not read foo. Remove $/${} for that, or use ${var?} to quiet
This is interpreted as a shell file redirection, not a comparison
Need a space before :
Redirection applies to the find command itself.
Invalid number for -eq. Use = to compare as string
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.