diff --git a/src/ShellCheck/Checks/ShellSupport.hs b/src/ShellCheck/Checks/ShellSupport.hs index 8f55b3c..40397af 100644 --- a/src/ShellCheck/Checks/ShellSupport.hs +++ b/src/ShellCheck/Checks/ShellSupport.hs @@ -152,6 +152,10 @@ prop_checkBashisms69 = verifyNot checkBashisms "#!/bin/sh\numask -S" prop_checkBashisms70 = verify checkBashisms "#!/bin/sh\ntrap -l" prop_checkBashisms71 = verify checkBashisms "#!/bin/sh\ntype -a ls" prop_checkBashisms72 = verifyNot checkBashisms "#!/bin/sh\ntype ls" +prop_checkBashisms73 = verifyNot checkBashisms "#!/bin/sh\necho \"-n foo\"" +prop_checkBashisms74 = verifyNot checkBashisms "#!/bin/sh\necho \"-ne foo\"" +prop_checkBashisms75 = verifyNot checkBashisms "#!/bin/sh\necho -Q foo" +prop_checkBashisms76 = verify checkBashisms "#!/bin/sh\necho -ne foo" checkBashisms = ForShell [Sh, Dash] $ \t -> do params <- ask kludge params t @@ -238,15 +242,17 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do warnMsg id "`