Merge pull request #1159 from geirha/patch-1

Consider type a valid command in sh
This commit is contained in:
Vidar Holen 2018-03-27 11:38:07 -07:00 committed by GitHub
commit ef28200199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do
"let", "caller", "builtin", "complete", "compgen", "declare", "dirs", "disown", "let", "caller", "builtin", "complete", "compgen", "declare", "dirs", "disown",
"enable", "mapfile", "readarray", "pushd", "popd", "shopt", "suspend", "enable", "mapfile", "readarray", "pushd", "popd", "shopt", "suspend",
"typeset" "typeset"
] ++ if not isDash then ["local", "type"] else [] ] ++ if not isDash then ["local"] else []
allowedFlags = Map.fromList [ allowedFlags = Map.fromList [
("exec", []), ("exec", []),
("export", ["-p"]), ("export", ["-p"]),