Skip to content

Commit 944d879

Browse files
committed
Recognize "oksh" executable name as ksh
A portable version of OpenBSD's ksh is distributed with the executable name oksh [1]. It's a descendant of pdksh and can be shellchecked as ksh. [1]: https://github.com/ibara/oksh
1 parent 47bff1d commit 944d879

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ShellCheck/Data.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ shellForExecutable name =
167167
"ksh" -> return Ksh
168168
"ksh88" -> return Ksh
169169
"ksh93" -> return Ksh
170+
"oksh" -> return Ksh
170171
_ -> Nothing
171172

172173
flagsForRead = "sreu:n:N:i:p:a:t:"

src/ShellCheck/Parser.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,8 @@ readScriptFile sourced = do
33873387
"busybox sh",
33883388
"bash",
33893389
"bats",
3390-
"ksh"
3390+
"ksh",
3391+
"oksh"
33913392
]
33923393
badShells = [
33933394
"awk",

0 commit comments

Comments
 (0)