diff --git a/SC3026.md b/SC3026.md index 651c8ed..d1a8d49 100644 --- a/SC3026.md +++ b/SC3026.md @@ -11,6 +11,10 @@ echo foo-[^0]*.jpg ```sh echo foo-[!0]*.jpg ``` +or if the intention is to match `^` literally then either do not put it immediately after `[` or quote it by backslash `\` +```sh +echo foo-[0^]*.jpg foo-[\^0]*.jpg +``` ### Rationale: