mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
minor grammar
@@ -22,7 +22,7 @@ l=${#var}
|
|||||||
|
|
||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
`sh` doesn't have a great replacement for the `:` operator (regex match). ShellCheck tries not to warn when using expr with `:`, but e.g. `op=:; expr string "$op" regex` still trigger it.
|
`sh` doesn't have a great replacement for the `:` operator (regex match). ShellCheck tries not to warn when using expr with `:`, but e.g. `op=:; expr string "$op" regex` will still trigger it.
|
||||||
|
|
||||||
Other than that, all uses of `expr` can be rewritten to use modern shell features instead.
|
Other than that, all uses of `expr` can be rewritten to use modern shell features instead.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user