mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
minor grammar
@@ -22,7 +22,7 @@ l=${#var}
|
||||
|
||||
### 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.
|
||||
|
||||
|
Reference in New Issue
Block a user