Skip to content
Vidar Holen edited this page Jan 21, 2015 · 7 revisions

This is a unicode double quote. Delete and retype it.

Problematic code:

echo “hello world”

Correct code:

echo "hello world"

Rationale:

Blog software and word processors frequently replaces ASCII quotes "" with fancy Unicode quotes, “”. To bash, Unicode quotes are considered regular literals and not quotes at all.

Simply delete them and retype them in your editor.

Exceptions

If you really want literal Unicode double quotes, you can put them in single quotes (or unicode single quotes in double quotes) to make shellcheck ignore them.

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