Skip to content
Vidar Holen edited this page Aug 17, 2021 · 3 revisions

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

(or any other character)

Problematic code:

echo "Hello ${{name}"

Correct code:

echo "Hello ${name}"

Rationale:

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.

Exceptions:

Some Zsh specific parameter expansions like ${(q)value} trigger this warning, but ShellCheck does not support Zsh.

Related resources:

  • Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally