Skip to content

Commit 62a8ecf

Browse files
committed
Merge branch 'e-kwsm-SC3013'
2 parents 0b5410d + 3a9ddae commit 62a8ecf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
- SC2317 about unreachable commands is now less spammy for nested ones.
1818
- SC2292, optional suggestion for [[ ]], now triggers for Busybox.
1919

20+
### Removed
21+
- SC3013: removed since the operators `-ot/-nt/-ef` are specified in POSIX.1-2024
2022

2123
## v0.10.0 - 2024-03-07
2224
### Added

src/ShellCheck/Checks/ShellSupport.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ checkForDecimals = ForShell [Sh, Dash, BusyboxSh, Bash] f
8787

8888

8989
prop_checkBashisms = verify checkBashisms "while read a; do :; done < <(a)"
90-
prop_checkBashisms2 = verify checkBashisms "[ foo -nt bar ]"
90+
prop_checkBashisms2 = verifyNot checkBashisms "[ foo -nt bar ]"
9191
prop_checkBashisms3 = verify checkBashisms "echo $((i++))"
9292
prop_checkBashisms4 = verify checkBashisms "rm !(*.hs)"
9393
prop_checkBashisms5 = verify checkBashisms "source file"
@@ -512,8 +512,6 @@ bashismBinaryTestFlags = buildTestFlagMap [
512512
-- information.
513513
(["<", ">", "\\<", "\\>", "<=", ">=", "\\<=", "\\>="],
514514
(3012, [Dash, BusyboxSh], \op -> "lexicographical " ++ op ++ " is")),
515-
(["-nt", "-ot", "-ef"],
516-
(3013, [Dash, BusyboxSh], \op -> op ++ " is")),
517515
(["=="],
518516
(3014, [BusyboxSh], \op -> op ++ " in place of = is")),
519517
(["=~"],

0 commit comments

Comments
 (0)