Merge pull request #1159 from geirha/patch-1
Consider type a valid command in sh
This commit is contained in:
commit
ef28200199
|
@ -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"]),
|
||||||
|
|
Loading…
Reference in New Issue