SC3026: alternative correct code to match ^

maxnikulin
2023-04-18 18:38:55 +07:00
parent affd2f4213
commit 855e3c7538

@@ -11,6 +11,10 @@ echo foo-[^0]*.jpg
```sh ```sh
echo foo-[!0]*.jpg 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: ### Rationale: