From 9e59bcca9131359b9f418b209cbfbe41116a3679 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 23 Aug 2020 15:49:20 -0700 Subject: [PATCH] Upgrade SC2169 (unsupported in dash) from warning to error (fixes #2013) --- src/ShellCheck/Checks/ShellSupport.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Checks/ShellSupport.hs b/src/ShellCheck/Checks/ShellSupport.hs index 2482207..788323d 100644 --- a/src/ShellCheck/Checks/ShellSupport.hs +++ b/src/ShellCheck/Checks/ShellSupport.hs @@ -190,7 +190,7 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do isDash = shellType params == Dash warnMsg id s = if isDash - then warn id 2169 $ "In dash, " ++ s ++ " not supported." + then err id 2169 $ "In dash, " ++ s ++ " not supported." else warn id 2039 $ "In POSIX sh, " ++ s ++ " undefined." bashism (T_ProcSub id _ _) = warnMsg id "process substitution is"