Upgrade SC2169 (unsupported in dash) from warning to error (fixes #2013)
This commit is contained in:
parent
a62d9f10c2
commit
9e59bcca91
|
@ -190,7 +190,7 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do
|
||||||
isDash = shellType params == Dash
|
isDash = shellType params == Dash
|
||||||
warnMsg id s =
|
warnMsg id s =
|
||||||
if isDash
|
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."
|
else warn id 2039 $ "In POSIX sh, " ++ s ++ " undefined."
|
||||||
|
|
||||||
bashism (T_ProcSub id _ _) = warnMsg id "process substitution is"
|
bashism (T_ProcSub id _ _) = warnMsg id "process substitution is"
|
||||||
|
|
Loading…
Reference in New Issue