mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2123 (markdown)
@@ -21,7 +21,7 @@ Bad practice: use another uppercase name.
|
|||||||
|
|
||||||
`PATH` is where the shell looks for the commands it executes. By inadvertently overwriting it, the shell will be unable to find commands (like `cat` in this case).
|
`PATH` is where the shell looks for the commands it executes. By inadvertently overwriting it, the shell will be unable to find commands (like `cat` in this case).
|
||||||
|
|
||||||
You get this warning when ShellCheck suspects that you didn't meant to overwrite it (because it contains a non-`/bin` path but no path separators (`:`)).
|
You get this warning when ShellCheck suspects that you didn't meant to overwrite it (because it's a single path with no path separators).
|
||||||
|
|
||||||
Best shell scripting practice is to always use lowercase variable names to avoid accidentally overwriting exported and internal variables.
|
Best shell scripting practice is to always use lowercase variable names to avoid accidentally overwriting exported and internal variables.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user