summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index fcaf39f9..2cfd90cb 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -184,7 +184,7 @@ sc_prohibit_test_unary_operators:
# when the other operand is a constant -- just swap them, and remove the
# spurious leading `x'.
sc_prohibit_test_const_follows_var:
- @var='[ ]+"[^$$"]*\$$[0-9A-Za-z_][^"]*"' \
+ @var='[ ]+"[^$$"]*\$${?[0-9A-Za-z_][^"]*"' \
op='[ ]+(!?=|-[lgn][et]|-eq)' \
const='[ ]+[^-$$][^$$; ]*' \
prohibit='test'$$var$$op$$const'[ ]*(&&|\|\||;|\\?$$)' \