mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Improve error for missing final ) in $((foo)
This commit is contained in:
parent
825c1b5d22
commit
8a3bd25f7c
1 changed files with 3 additions and 1 deletions
|
@ -1255,7 +1255,9 @@ readDollarArithmetic = called "$((..)) expression" $ do
|
|||
id <- getNextId
|
||||
try (string "$((")
|
||||
c <- readArithmeticContents
|
||||
string "))"
|
||||
pos <- getPosition
|
||||
char ')'
|
||||
char ')' <|> fail "Expected a double )) to end the $((..))"
|
||||
return (T_DollarArithmetic id c)
|
||||
|
||||
readDollarBracket = called "$[..] expression" $ do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue