From 55216792c98310dcc7681f361be3deea4586e6fe Mon Sep 17 00:00:00 2001 From: Geir Hauge Date: Sun, 25 Mar 2018 12:11:57 +0200 Subject: [PATCH] Consider type a valid command in sh [type](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html) *is* defined by POSIX, and even the bourne shell has the `type` command. --- src/ShellCheck/Checks/ShellSupport.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Checks/ShellSupport.hs b/src/ShellCheck/Checks/ShellSupport.hs index 3e01a72..f1c258f 100644 --- a/src/ShellCheck/Checks/ShellSupport.hs +++ b/src/ShellCheck/Checks/ShellSupport.hs @@ -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"]),