@@ -86,7 +86,7 @@ checkForDecimals = ForShell [Sh, Dash, BusyboxSh, Bash] f
86
86
87
87
88
88
prop_checkBashisms = verify checkBashisms " while read a; do :; done < <(a)"
89
- prop_checkBashisms2 = verify checkBashisms " [ foo -nt bar ]"
89
+ prop_checkBashisms2 = verifyNot checkBashisms " [ foo -nt bar ]"
90
90
prop_checkBashisms3 = verify checkBashisms " echo $((i++))"
91
91
prop_checkBashisms4 = verify checkBashisms " rm !(*.hs)"
92
92
prop_checkBashisms5 = verify checkBashisms " source file"
@@ -252,12 +252,6 @@ checkBashisms = ForShell [Sh, Dash, BusyboxSh] $ \t -> do
252
252
bashism (T_SimpleCommand id _ [asStr -> Just " test" , lhs, asStr -> Just op, rhs])
253
253
| op `elem` [ " <" , " >" , " \\ <" , " \\ >" , " <=" , " >=" , " \\ <=" , " \\ >=" ] =
254
254
unless isDash $ warnMsg id 3012 $ " lexicographical " ++ op ++ " is"
255
- bashism (TC_Binary id SingleBracket op _ _)
256
- | op `elem` [ " -ot" , " -nt" , " -ef" ] =
257
- unless isDash $ warnMsg id 3013 $ op ++ " is"
258
- bashism (T_SimpleCommand id _ [asStr -> Just " test" , lhs, asStr -> Just op, rhs])
259
- | op `elem` [ " -ot" , " -nt" , " -ef" ] =
260
- unless isDash $ warnMsg id 3013 $ op ++ " is"
261
255
bashism (TC_Binary id SingleBracket " ==" _ _) =
262
256
unless isBusyboxSh $ warnMsg id 3014 " == in place of = is"
263
257
bashism (T_SimpleCommand id _ [asStr -> Just " test" , lhs, asStr -> Just " ==" , rhs]) =
0 commit comments