From f9b63b1af0acbfaadae85ad473e92e689782beac Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Thu, 21 Oct 2021 20:57:31 -0700 Subject: [PATCH] Updated SC3026 (markdown) --- SC3026.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: