Upgrade SC2169 (unsupported in dash) from warning to error (fixes #2013)

This commit is contained in:
Vidar Holen 2020-08-23 15:49:20 -07:00
parent a62d9f10c2
commit 9e59bcca91
1 changed files with 1 additions and 1 deletions

View File

@ -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"