-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2297
Joachim Ansorg edited this page Nov 15, 2021
·
2 revisions
echo ${"USER"}
echo "${USER}"
ShellCheck found a parameter expansion containing what appears to be a quoted variable name.
While the parameter expansion itself must be quoted, as in "${valid}"
, the quotes may not appear inside the {}
as in ${"invalid"}
.
Also note that translated strings like $"Hello"
may not use curly braces.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!