-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2301
Vidar Holen edited this page Aug 17, 2021
·
1 revision
echo ${"Hello World"}
echo $"Hello World"
ShellCheck found a parameter expansion ${...}
that contains an unexpected syntax element, such as single or double quotes.
In the example, this was due to wrapping a translated string $".."
with curly braces, which is not valid.
It is unclear what the intention is with invalid expansions like ${'foo'}
, ${$"foo"}
, so please look up how to do what you were trying to do.
If this warning triggers for working code, please submit a bug.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!