SC2296 – ShellCheck Wiki

See this page on GitHub


Parameter expansions can't start with {. Double check syntax.

(or any other character)

Problematic code:

echo "Hello ${{name}"

Correct code:

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.

ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.