From 010a41f6f0f16f09e22bbc1f420ffb807ff73dca Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 31 Aug 2024 18:40:02 -0700 Subject: [PATCH] Updated SC2002 (markdown) --- SC2002.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SC2002.md b/SC2002.md index 3161a71..84c9587 100644 --- a/SC2002.md +++ b/SC2002.md @@ -1,5 +1,9 @@ # 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: ```sh