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

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

There is a newer version: 2.5.0
Show newest version

This word is constant. Did you forget the $ on a variable?

Problematic code

case foo in
  bar) echo "Match"
esac

Correct code

case $foo in
  bar) echo "Match"
esac

Rationale

You are using a case statement to compare a literal word.

You most likely wanted to treat this word as a $variable or $(command) instead.

Exceptions

None





© 2015 - 2025 Weber Informatics LLC | Privacy Policy