From af87fe93157977036ddd991c3f4a0cb40b734fa2 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 20 Dec 2016 16:14:18 -0600 Subject: [PATCH] add missing references to dash --- ShellCheck/Checks/Commands.hs | 2 +- ShellCheck/Parser.hs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ShellCheck/Checks/Commands.hs b/ShellCheck/Checks/Commands.hs index 3ffbfc7..ff61d63 100644 --- a/ShellCheck/Checks/Commands.hs +++ b/ShellCheck/Checks/Commands.hs @@ -337,7 +337,7 @@ checkInjectableFindSh = CommandCheck (Basename "find") (check . arguments) pattern = [ (`elem` ["-exec", "-execdir"]), - (`elem` ["sh", "bash", "ksh"]), + (`elem` ["sh", "bash", "dash", "ksh"]), (== "-c") ] action (id, arg) = diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 2b0299a..f97cddf 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -2587,8 +2587,8 @@ readScriptFile = do verifyShell pos s = case isValidShell s of Just True -> return () - Just False -> parseProblemAt pos ErrorC 1071 "ShellCheck only supports sh/bash/ksh scripts. Sorry!" - Nothing -> parseProblemAt pos InfoC 1008 "This shebang was unrecognized. Note that ShellCheck only handles sh/bash/ksh." + Just False -> parseProblemAt pos ErrorC 1071 "ShellCheck only supports sh/bash/dash/ksh scripts. Sorry!" + Nothing -> parseProblemAt pos InfoC 1008 "This shebang was unrecognized. Note that ShellCheck only handles sh/bash/dash/ksh." isValidShell s = let good = s == "" || any (`isPrefixOf` s) goodShells