mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 16:59:07 +08:00
Merge pull request #1159 from geirha/patch-1
Consider type a valid command in sh
This commit is contained in:
@@ -277,7 +277,7 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do
|
||||
"let", "caller", "builtin", "complete", "compgen", "declare", "dirs", "disown",
|
||||
"enable", "mapfile", "readarray", "pushd", "popd", "shopt", "suspend",
|
||||
"typeset"
|
||||
] ++ if not isDash then ["local", "type"] else []
|
||||
] ++ if not isDash then ["local"] else []
|
||||
allowedFlags = Map.fromList [
|
||||
("exec", []),
|
||||
("export", ["-p"]),
|
||||
|
Reference in New Issue
Block a user