mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Added link to POSIX test(1), added missing verb
@@ -18,7 +18,7 @@ expr "$var" : ".*foo[0-9]*" > /dev/null
|
|||||||
|
|
||||||
You are using `=~` in a script declared to be compatible with POSIX sh or Dash.
|
You are using `=~` in a script declared to be compatible with POSIX sh or Dash.
|
||||||
|
|
||||||
`=~` is not a POSIX operator and is unlikely to outside `[[ ]]` in Bash and Ksh.
|
`=~` is [not a POSIX operator](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html) and is unlikely to work outside `[[ ]]` in Bash and Ksh.
|
||||||
|
|
||||||
Use `expr`'s `:` operator instead.
|
Use `expr`'s `:` operator instead.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user