mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 12:30:52 +08:00
Fixed some incorrect warnings for PS1 escapes.
This commit is contained in:
@@ -829,7 +829,7 @@ readGenericLiteral1 endExp = do
|
||||
readGenericEscaped = do
|
||||
backslash
|
||||
x <- anyChar
|
||||
return $ if x == '\n' then [] else [x]
|
||||
return $ if x == '\n' then [] else ['\\', x]
|
||||
|
||||
prop_readBraced = isOk readBraced "{1..4}"
|
||||
prop_readBraced2 = isOk readBraced "{foo,bar,\"baz lol\"}"
|
||||
|
Reference in New Issue
Block a user