All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.shellcheck.rules.shellcheck.SC1112.html Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version

This is a unicode quote. Delete and retype it (or ignore/doublequote for literal).

Problematic code

echo 'hello world’

Correct code

echo 'hello world'

Rationale

Some software, like OS X, Word and WordPress, may automatically replace your regular quotes with slanted Unicode quotes. The shell does not recognize these quotes and will not respect them.

In this case, you have slanted single quotes in a single quoted string. Try deleting and retyping them, and/or disable “smart quotes” in your editor or OS.

Exceptions

If you want to use literal slanted single quotes for typographic reasons, you can put them in double quotes to make ShellCheck ignore them:

printf "Warning: ‘wakeonlan’ is not installed.\\n"

You can also just [[ignore]] this warning.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy