mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2076 (markdown)
@@ -20,7 +20,7 @@ This also means that the problematic code tries to match literal carets and plus
|
||||
|
||||
### Exceptions:
|
||||
|
||||
If you do want to match literally just to do a plain substring search, e.g. `[[ $foo =~ "bar" ]]`, you could ignore this message, but consider using a more canonical glob match instead: `[[ $foo = *"bar"* ]]`.
|
||||
If you do want to match literally just to do a plain substring search, e.g. `[[ $foo =~ "bar" ]]`, you could ignore this message, but consider using a more canonical glob match instead: `[[ $foo == *"bar"* ]]`.
|
||||
|
||||
### Compatibility:
|
||||
|
||||
|
Reference in New Issue
Block a user