Skip to content

Commit 1be41dd

Browse files
authored
Merge pull request #3082 from silby/oksh
Recognize "oksh" executable name as ksh
2 parents 2eddec8 + 944d879 commit 1be41dd

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)