-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2296
Joachim Ansorg edited this page Nov 15, 2021
·
3 revisions
(or any other character)
echo "Hello ${{name}"
echo "Hello ${name}"
ShellCheck found a parameter expansion ${something}
that starts with an invalid character. In the example, this was caused by accidentally duplicating the {
in ${{name}
.
Double check the syntax of what you're trying to do.
Some Zsh specific parameter expansions like ${(q)value}
trigger this warning, but ShellCheck does not support Zsh.
If this warning triggers in code that works on Bash, Ksh, Dash or Sh, please submit a bug.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!