From b63354d2145e22491f28752bec990cefc318c652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lawrence=20Vel=C3=A1zquez?= Date: Fri, 8 Mar 2024 21:28:19 -0500 Subject: [PATCH] Added link to POSIX test(1), added missing verb --- SC3015.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC3015.md b/SC3015.md index f2d4874..d8a386a 100644 --- a/SC3015.md +++ b/SC3015.md @@ -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. -`=~` 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.