diff --git a/SC3026.md b/SC3026.md index f233570..afbdbfa 100644 --- a/SC3026.md +++ b/SC3026.md @@ -14,9 +14,9 @@ echo foo-[!0]*.jpg ### Rationale: -`[^c]` is frequently used in most regular expression variants to mean "any character except `c`". This is so pervasive that bash, ksh, dash, and BusyBox ash, all allow it. +`[^c]` is frequently used in most regular expression variants to mean "any character except `c`". Ksh and Bash adopted it for globs as well. -However, strictly speaking, the only range complement syntax guaranteed to be supported across shells is `[!c]`. +However, strictly speaking, the only range complement syntax guaranteed to be supported across shells is `[!c]`. Dash only supports it when using `fnmatch` and `glob` from glibc. ### Exceptions: