mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 00:49:12 +08:00
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:
@@ -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:"
|
||||||
|
@@ -3387,7 +3387,8 @@ readScriptFile sourced = do
|
|||||||
"busybox sh",
|
"busybox sh",
|
||||||
"bash",
|
"bash",
|
||||||
"bats",
|
"bats",
|
||||||
"ksh"
|
"ksh",
|
||||||
|
"oksh"
|
||||||
]
|
]
|
||||||
badShells = [
|
badShells = [
|
||||||
"awk",
|
"awk",
|
||||||
|
Reference in New Issue
Block a user