mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-21 10:50:42 +08:00
Make SC1012 "printf '\t'" suggestion use single quotes
This commit is contained in:
@@ -1367,7 +1367,7 @@ readNormalEscaped = called "escaped char" $ do
|
|||||||
return [next]
|
return [next]
|
||||||
where
|
where
|
||||||
alternative 'n' = "a quoted, literal line feed"
|
alternative 'n' = "a quoted, literal line feed"
|
||||||
alternative t = "\"$(printf \"\\" ++ [t] ++ "\")\""
|
alternative t = "\"$(printf '\\" ++ [t] ++ "')\""
|
||||||
escapedChar 'n' = Just "line feed"
|
escapedChar 'n' = Just "line feed"
|
||||||
escapedChar 't' = Just "tab"
|
escapedChar 't' = Just "tab"
|
||||||
escapedChar 'r' = Just "carriage return"
|
escapedChar 'r' = Just "carriage return"
|
||||||
|
Reference in New Issue
Block a user