From 66c7cf19e2a6db62e7725886b2374f538899f1f0 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 1 Apr 2017 22:01:05 -0700 Subject: [PATCH] Fix missing backslash in SC1003 about '\'' --- ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 3dea149..3120174 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -1339,7 +1339,7 @@ readSingleEscaped = do x <- lookAhead anyChar case x of - '\'' -> parseProblemAt pos InfoC 1003 "Want to escape a single quote? echo 'This is how it'\''s done'."; + '\'' -> parseProblemAt pos InfoC 1003 "Want to escape a single quote? echo 'This is how it'\\''s done'."; '\n' -> parseProblemAt pos InfoC 1004 "This backslash+linefeed is literal. Break outside single quotes if you just want to break the line." _ -> return ()