mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2002 (markdown)
@@ -1,5 +1,9 @@
|
|||||||
# Useless cat. Consider `cmd < file | ..` or `cmd file | ..` instead.
|
# Useless cat. Consider `cmd < file | ..` or `cmd file | ..` instead.
|
||||||
|
|
||||||
|
This suggestion was enabled by default up to and including ShellCheck 0.10.0.
|
||||||
|
|
||||||
|
In later versions, it is [[optional]]. It must be explicitly enabled with a [[directive]] `enable=useless-use-of-cat` in a `# shellcheck` comment or `.shellcheckrc`
|
||||||
|
|
||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Reference in New Issue
Block a user