Skip to content

Commit

Permalink
Upgrade SC2169 (unsupported in dash) from warning to error (fixes koa…
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Aug 23, 2020
1 parent a62d9f1 commit 9e59bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellCheck/Checks/ShellSupport.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9e59bcc

Please sign in to comment.