Skip to content

Commit

Permalink
Consider type a valid command in sh
Browse files Browse the repository at this point in the history
[type](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html) *is* defined by POSIX, and even the bourne shell has the `type` command.
  • Loading branch information
geirha authored Mar 25, 2018
1 parent 51e115c commit 5521679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellCheck/Checks/ShellSupport.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
Expand Down

0 comments on commit 5521679

Please sign in to comment.