diff --git a/CHANGELOG.md b/CHANGELOG.md index e2edf0c..ccc8a79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ - SC2317 about unreachable commands is now less spammy for nested ones. - SC2292, optional suggestion for [[ ]], now triggers for Busybox. +### Removed +- SC3013: removed since the operators `-ot/-nt/-ef` are specified in POSIX.1-2024 ## v0.10.0 - 2024-03-07 ### Added diff --git a/src/ShellCheck/Checks/ShellSupport.hs b/src/ShellCheck/Checks/ShellSupport.hs index c828555..b664879 100644 --- a/src/ShellCheck/Checks/ShellSupport.hs +++ b/src/ShellCheck/Checks/ShellSupport.hs @@ -87,7 +87,7 @@ checkForDecimals = ForShell [Sh, Dash, BusyboxSh, Bash] f prop_checkBashisms = verify checkBashisms "while read a; do :; done < <(a)" -prop_checkBashisms2 = verify checkBashisms "[ foo -nt bar ]" +prop_checkBashisms2 = verifyNot checkBashisms "[ foo -nt bar ]" prop_checkBashisms3 = verify checkBashisms "echo $((i++))" prop_checkBashisms4 = verify checkBashisms "rm !(*.hs)" prop_checkBashisms5 = verify checkBashisms "source file" @@ -512,8 +512,6 @@ bashismBinaryTestFlags = buildTestFlagMap [ -- information. (["<", ">", "\\<", "\\>", "<=", ">=", "\\<=", "\\>="], (3012, [Dash, BusyboxSh], \op -> "lexicographical " ++ op ++ " is")), - (["-nt", "-ot", "-ef"], - (3013, [Dash, BusyboxSh], \op -> op ++ " is")), (["=="], (3014, [BusyboxSh], \op -> op ++ " in place of = is")), (["=~"],