From 6a71ff6f46d7860d3728491f653acddba0ae5fcb Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 30 Jul 2016 10:42:33 -0700 Subject: [PATCH] Don't suggest removing $ in (( ${COLUMNS-80} )) --- ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index 53a4d73..19a2313 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -1369,7 +1369,7 @@ checkArithmeticDeref params t@(TA_Expansion _ [b@(T_DollarBraced id _)]) = unless (isException $ bracedString b) getWarning where isException [] = True - isException s = any (`elem` "/.:#%?*@$") s || isDigit (head s) + isException s = any (`elem` "/.:#%?*@$-") s || isDigit (head s) getWarning = fromMaybe noWarning . msum . map warningFor $ parents params t warningFor t = case t of