From b01f1128c70d5f4b06f2a3ec2d7c8a11167fe468 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 23 Jun 2018 22:55:02 -0700 Subject: [PATCH] Make SC1012 "printf '\t'" suggestion use single quotes --- src/ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index ab91b4a..70ad72f 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -1367,7 +1367,7 @@ readNormalEscaped = called "escaped char" $ do return [next] where alternative 'n' = "a quoted, literal line feed" - alternative t = "\"$(printf \"\\" ++ [t] ++ "\")\"" + alternative t = "\"$(printf '\\" ++ [t] ++ "')\"" escapedChar 'n' = Just "line feed" escapedChar 't' = Just "tab" escapedChar 'r' = Just "carriage return"