From 2ecdd5d636d185e18f33ddcb9c4b3f6ac1dbf49a Mon Sep 17 00:00:00 2001 From: maxnikulin Date: Fri, 14 Apr 2023 17:57:28 +0700 Subject: [PATCH] Behavior of dash changed --- SC3026.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC3026.md b/SC3026.md index fd9dfd6..5003074 100644 --- a/SC3026.md +++ b/SC3026.md @@ -16,7 +16,7 @@ echo foo-[!0]*.jpg `[^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]`. Dash only supports it when using `fnmatch` and `glob` from glibc. +However, strictly speaking, the only range complement syntax guaranteed to be supported across shells is `[!c]`. Dash used to support `[^c]` when compiled with `fnmatch` and `glob` from glibc, but it was considered as a [bug](https://lore.kernel.org/dash/09fd70edcf08c75b4f9f2e158e3e6c0832d35d90.camel@scientia.org/t/#u) and fixed in version 0.5.12. Busybox has a similar [bug 14516](https://bugs.busybox.net/show_bug.cgi?id=14516). ### Exceptions: