mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Stop treating backticks as literals.
This commit is contained in:
parent
0cbbee7b89
commit
396541f3c2
3 changed files with 6 additions and 3 deletions
|
@ -516,12 +516,12 @@ readSingleQuotedPart =
|
|||
prop_readBackTicked = isWarning readBackTicked "`ls *.mp3`"
|
||||
readBackTicked = do
|
||||
id <- getNextId
|
||||
parseNote InfoC "Ignoring deprecated `..` backtick expansion. Use $(..) instead."
|
||||
parseNote WarningC "Use $(..) instead of deprected `..` backtick expansion."
|
||||
pos <- getPosition
|
||||
char '`'
|
||||
f <- readGenericLiteral (char '`')
|
||||
char '`' `attempting` (eof >> parseProblemAt pos ErrorC "Can't find terminating backtick for this one.")
|
||||
return $ T_Literal id f
|
||||
return $ T_Backticked id f
|
||||
|
||||
|
||||
prop_readDoubleQuoted = isOk readDoubleQuoted "\"Hello $FOO\""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue