* cfg.mk (sc_prohibit_test_const_follows_var): Also flag errors
when the variable reference on the var side use ${brace_notation}.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
# 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'[ ]*(&&|\|\||;|\\?$$)' \