mirror of
				https://github.com/koalaman/shellcheck.git
				synced 2025-11-01 07:29:51 +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 | ||||
|         "ksh88" -> return Ksh | ||||
|         "ksh93" -> return Ksh | ||||
|         "oksh"  -> return Ksh | ||||
|         _ -> Nothing | ||||
|  | ||||
| flagsForRead = "sreu:n:N:i:p:a:t:" | ||||
|   | ||||
| @@ -3387,7 +3387,8 @@ readScriptFile sourced = do | ||||
|         "busybox sh", | ||||
|         "bash", | ||||
|         "bats", | ||||
|         "ksh" | ||||
|         "ksh", | ||||
|         "oksh" | ||||
|         ] | ||||
|     badShells = [ | ||||
|         "awk", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user