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
This commit is contained in:
Evan Silberman 2024-11-11 11:24:21 -08:00
parent 47bff1d5fd
commit 944d87915a
2 changed files with 3 additions and 1 deletions

View File

@ -167,6 +167,7 @@ shellForExecutable name =
"ksh" -> return Ksh "ksh" -> return Ksh
"ksh88" -> return Ksh "ksh88" -> return Ksh
"ksh93" -> return Ksh "ksh93" -> return Ksh
"oksh" -> return Ksh
_ -> Nothing _ -> Nothing
flagsForRead = "sreu:n:N:i:p:a:t:" flagsForRead = "sreu:n:N:i:p:a:t:"

View File

@ -3387,7 +3387,8 @@ readScriptFile sourced = do
"busybox sh", "busybox sh",
"bash", "bash",
"bats", "bats",
"ksh" "ksh",
"oksh"
] ]
badShells = [ badShells = [
"awk", "awk",