mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 05:21:34 -07:00
Fixed unquoted $@ warning message.
This commit is contained in:
parent
4c3e731445
commit
c785d43e34
1 changed files with 1 additions and 1 deletions
|
@ -950,7 +950,7 @@ prop_checkUnquotedDollarAt8 = verifyNot checkUnquotedDollarAt "echo \"${args[@]:
|
|||
checkUnquotedDollarAt p word@(T_NormalWord _ parts) | not $ isStrictlyQuoteFree (parentMap p) word =
|
||||
forM_ (take 1 $ filter isArrayExpansion parts) $ \x ->
|
||||
err (getId x) 2068
|
||||
"Double quote array expansions, otherwise they're like $* and break on spaces."
|
||||
"Double quote array expansions to avoid re-splitting elements."
|
||||
checkUnquotedDollarAt _ _ = return ()
|
||||
|
||||
prop_checkConcatenatedDollarAt1 = verify checkConcatenatedDollarAt "echo \"foo$@\""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue